A generic player which autonomously manages audio focuses and media resources.
Queries:
text
: String. Optional speech synthesis text.url
: String. Optional media url.transient
: Enum0
,1
. Optional flag indicates if the media was expected to be requested with transient focus. Defaults to1
sequential
: Enum0
,1
. Optional flag indicates if the speech synthesis and media should be played in sequential order but not simultaneously. Defaults to0
.tag
: Optional media tag. Cloud Player does nothing with it.
Queries:
to
: Number. Optional position to be sought to.by
: Number. Optional delta to be sought by.hint
: String. Optional hint speech synthesis text. Would be ignored if no current player available.
If both to
and by
are specified in query, by
would be ignored.
Queries:
speed
: Number.hint
: String. Optional hint speech synthesis text. Would be ignored if no current player available.
Queries:
pickupOnEnd
: Enum0
,1
. Open microphone on end of stream. Defaults to1
.pickupDuration
: Number, Pickup duration in milliseconds.
Message: [status-code
, media-tag
]
Message: [status-code
]
All methods were declared with target name cloud-player
Only available when yoda-app://cloud-player/play-tts-stream
is opened and would be unavailable right after end of stream.
Response: [utter-id
]
Retrieve currently available (either active or suspended temporarily) players status.
Response: [...[tag
, ...[key
, value
]]]
Possible Key-Values:
duration
: Number. Media duration in milliseconds.position
: Number. Media position in milliseconds.playing
: Enum0
,1
. Media playing state.
Enum of following numbers:
0
: Player started1
: Player end2
: Player cancelled3
: Player error4
: Player paused5
: Player resumed