public interface VideoCustomMetadata
Modifier and Type | Field and Description |
---|---|
static String |
BASE_HIT_COUNT
The hit count inherited from related media.
|
static String |
BASE_PLAY_COUNT
The play count inherited from related media.
|
static String |
BASE_PLAY_DURATION
The play duration inherited from related media.
|
static String |
BROADCAST_STARTED_AT
The starting time of the live streaming.
|
static String |
CCU
The live event's number of concurrent users at the last update time.
|
static String |
CCU_UPDATED_AT
The
CCU last updated time. |
static String |
CHATROOM_NAME
The chatroom name of the live streaming.
|
static String |
COVER_URL
The image shown in the Straas web player when a live streaming is off air.
|
static String |
CUSTOM_METADATA_ACCOUNT |
static String |
CUSTOM_METADATA_IS_LIVE_LOW_LATENCY
Bundle key in
MediaMetadataCompat to indicate whether the StraasMediaCore.PLAY_OPTION_LIVE_LOW_LATENCY
bundle key in MediaControllerCompat.TransportControls.playFromMediaId(String, Bundle) is set to true or not. |
static String |
CUSTOM_METADATA_IS_PUBLIC |
static String |
HIT_COUNT_SUM
The sum of number of times the media (Live or VOD) hit.
|
static String |
IS_AUDIO_DISABLED
Bundle key in
MediaSessionCompat extra to indicate whether the audio output is disabled. |
static String |
KEY_TEXT_TRACKS
Bundle key in
MediaSessionCompat extra to indicate the subtitle list. |
static String |
LIVE_BROADCAST_START_TIME
Bundle key for indicate that the broadcast start time of the live event, also means that it
is on LIVE now.
|
static String |
LIVE_BROADCAST_STATE_V2
Bundle key in
MediaSessionCompat extra to indicate the broadcast status of the
live event(v2). |
static String |
LIVE_DVR_ENABLED
Whether to enable live DVR feature for a live event.
|
static String |
LIVE_STATISTICS_CCU
Bundle key in
MediaSessionCompat extra to indicate the concurrent users of the live event. |
static String |
LIVE_STATISTICS_HIT_COUNT
Bundle key in
MediaSessionCompat extra to indicate the media hit count of the live event. |
static String |
PLAY_COUNT_SUM
The sum of number of times the media (Live or VOD) played.
|
static String |
PLAY_DURATION_SUM
The sum of play duration of the media (Live or VOD) in seconds.
|
static String |
SERVICE_FOREGROUND_IS_ENABLED
Bundle key in
MediaSessionCompat extra to get the boolean value that indicates the
foreground mode is enabled or not. |
static String |
START_TIME
The start time of the live event.
|
static String |
TEXT_TRACK_ID_ARRAY
The text track ID array for VOD.
|
static String |
TYPE
The event type indicates the live owns different functions and is used in different scenario.
|
static String |
UPDATED_AT
The data last updated time.
|
static final String CUSTOM_METADATA_ACCOUNT
static final String CUSTOM_METADATA_IS_PUBLIC
static final String CUSTOM_METADATA_IS_LIVE_LOW_LATENCY
MediaMetadataCompat
to indicate whether the StraasMediaCore.PLAY_OPTION_LIVE_LOW_LATENCY
bundle key in MediaControllerCompat.TransportControls.playFromMediaId(String, Bundle)
is set to true or not.
Use MediaController.getExtras()
.getBoolean(CUSTOM_METADATA_IS_LIVE_LOW_LATENCY)
static final String PLAY_COUNT_SUM
MediaController.getExtras()
.getLong(PLAY_COUNT_SUM)
static final String LIVE_DVR_ENABLED
MediaController.getExtras()
.getBoolean(LIVE_DVR_ENABLED)
static final String BASE_PLAY_COUNT
MediaController.getExtras()
.getLong(BASE_PLAY_COUNT)
static final String PLAY_DURATION_SUM
MediaController.getExtras()
.getLong(PLAY_DURATION_SUM)
static final String BASE_PLAY_DURATION
MediaController.getExtras()
.getLong(BASE_PLAY_DURATION)
static final String HIT_COUNT_SUM
MediaController.getExtras()
.getLong(HIT_COUNT_SUM)
static final String BASE_HIT_COUNT
MediaController.getExtras()
.getLong(BASE_HIT_COUNT)
static final String UPDATED_AT
MediaController.getExtras()
.getString(UPDATED_AT)
static final String BROADCAST_STARTED_AT
MediaController.getExtras()
.getString(BROADCAST_STARTED_AT)
static final String START_TIME
MediaController.getExtras()
.getString(START_TIME)
static final String CHATROOM_NAME
MediaController.getExtras()
.getString(CHATROOM_NAME)
static final String CCU
MediaController.getExtras()
.getString(CCU)
static final String TYPE
MediaController.getExtras()
.getString(TYPE)
static final String CCU_UPDATED_AT
static final String COVER_URL
MediaController.getExtras()
.getString(COVER_URL)
static final String TEXT_TRACK_ID_ARRAY
MediaController.getExtras()
.getStringArray(TEXT_TRACK_ID_ARRAY)
static final String IS_AUDIO_DISABLED
MediaSessionCompat
extra to indicate whether the audio output is disabled.
Bundle value is boolean
type, the default value is false
.
For client side, use MediaControllerCompat.getExtras()
or register callback via
MediaControllerCompat.registerCallback(MediaControllerCompat.Callback)
to get extras.
static final String SERVICE_FOREGROUND_IS_ENABLED
MediaSessionCompat
extra to get the boolean value that indicates the
foreground mode is enabled or not. If foreground mode is enabled, the Straas
MediaBrowserServiceCompat
will run in foreground when player state is not
PlaybackStateCompat.STATE_PAUSED
, PlaybackStateCompat.STATE_STOPPED
, or
PlaybackStateCompat.STATE_NONE
.
For client side, use MediaControllerCompat.getExtras()
or register callback via
MediaControllerCompat.registerCallback(MediaControllerCompat.Callback)
to get extras.
static final String LIVE_BROADCAST_STATE_V2
MediaSessionCompat
extra to indicate the broadcast status of the
live event(v2).
For client side, use MediaControllerCompat.getExtras()
or register callback via
MediaControllerCompat.registerCallback(MediaControllerCompat.Callback)
to get extras.
The value must be one of the following:
static final String LIVE_STATISTICS_CCU
MediaSessionCompat
extra to indicate the concurrent users of the live event.
For client side, use MediaControllerCompat.getExtras()
or register callback via
registerCallback(...)
and listen either
onSessionEvent
or onExtrasChanged
to get real-time value change. Both the event name and the Bundle
key is this constant, value is an integer.static final String LIVE_STATISTICS_HIT_COUNT
MediaSessionCompat
extra to indicate the media hit count of the live event.
For client side, use MediaControllerCompat.getExtras()
or register callback via
registerCallback(...)
and listen either
onSessionEvent
or onExtrasChanged
to get real-time value change. Both the event name and the Bundle
key is this constant, value is an integer.static final String KEY_TEXT_TRACKS
MediaSessionCompat
extra to indicate the subtitle list.
For client side, use MediaControllerCompat.getExtras()
or register callback via
registerCallback(...)
and listen
onExtrasChanged
to get real-time value change. Both the event name and the Bundle
key is this constant, value is string which can convert to subtitle list.static final String LIVE_BROADCAST_START_TIME
MediaControllerCompat.getExtras()
or register callback via
MediaControllerCompat.registerCallback(MediaControllerCompat.Callback)
to get extras.
The value type is Long
.LIVE_BROADCAST_STATE_V2
,
Constant Field Values