LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
TXVodConstants

Data Structures

class  TXVodConstants
 

Detailed Description

Player SDK constant class.


Data Structure Documentation

◆ com::tencent::rtmp::TXVodConstants

class com::tencent::rtmp::TXVodConstants

Static Public Attributes

static final int RENDER_MODE_FULL_FILL_SCREEN = 0
 
static final int RENDER_MODE_ADJUST_RESOLUTION = 1
 
static final int RENDER_ROTATION_PORTRAIT = 0
 
static final int RENDER_ROTATION_LANDSCAPE = 270
 
static final int VOD_PLAY_EVT_RCV_FIRST_I_FRAME = 2003
 
static final int VOD_PLAY_EVT_PLAY_BEGIN = 2004
 
static final int VOD_PLAY_EVT_PLAY_PROGRESS = 2005
 
static final int VOD_PLAY_EVT_PLAY_END = 2006
 
static final int VOD_PLAY_EVT_PLAY_LOADING = 2007
 
static final int VOD_PLAY_EVT_START_VIDEO_DECODER = 2008
 
static final int VOD_PLAY_EVT_CHANGE_RESOLUTION = 2009
 
static final int VOD_PLAY_EVT_GET_PLAYINFO_SUCC = 2010
 
static final int VOD_PLAY_EVT_CHANGE_ROTATION = 2011
 
static final int VOD_PLAY_EVT_VOD_PLAY_PREPARED = 2013
 
static final int VOD_PLAY_EVT_VOD_LOADING_END = 2014
 
static final int VOD_PLAY_EVT_RCV_FIRST_AUDIO_FRAME = 2026
 
static final int VOD_PLAY_WARNING_RECONNECT = 2103
 
static final int VOD_PLAY_ERR_NET_DISCONNECT = -2301
 
static final int VOD_PLAY_ERR_FILE_NOT_FOUND = -2303
 
static final int VOD_PLAY_ERR_HEVC_DECODE_FAIL = -2304
 
static final int VOD_PLAY_ERR_HLS_KEY = -2305
 
static final int VOD_PLAY_ERR_GET_PLAYINFO_FAIL = -2306
 
static final int VOD_PLAY_WARNING_HW_ACCELERATION_FAIL = 2106
 
static final int VOD_PLAY_ERR_INVALID_LICENSE = -5
 
static final int VOD_PLAY_EVT_TCP_CONNECT_SUCC = 2016
 
static final int VOD_PLAY_EVT_FIRST_VIDEO_PACKET = 2017
 
static final int VOD_PLAY_EVT_DNS_RESOLVED = 2018
 
static final int VOD_PLAY_EVT_SEEK_COMPLETE = 2019
 
static final int VOD_PLAY_EVT_LOOP_ONCE_COMPLETE = 6001
 
static final String EVT_UTC_TIME = "EVT_UTC_TIME"
 
static final String EVT_BLOCK_DURATION = "EVT_BLOCK_DURATION"
 
static final String EVT_TIME = "EVT_TIME"
 
static final String EVT_DESCRIPTION = "EVT_MSG"
 
static final String EVT_PARAM1 = "EVT_PARAM1"
 
static final String EVT_PARAM2 = "EVT_PARAM2"
 
static final String EVT_GET_MSG = "EVT_GET_MSG"
 
static final String EVT_PLAY_COVER_URL = "EVT_PLAY_COVER_URL"
 
static final String EVT_PLAY_URL = "EVT_PLAY_URL"
 
static final String EVT_PLAY_NAME = "EVT_PLAY_NAME"
 
static final String EVT_PLAY_DESCRIPTION = "EVT_PLAY_DESCRIPTION"
 
static final String EVT_PLAY_PROGRESS_MS = "EVT_PLAY_PROGRESS_MS"
 
static final String EVT_PLAY_DURATION_MS = "EVT_PLAY_DURATION_MS"
 
static final String EVT_PLAY_PROGRESS = "EVT_PLAY_PROGRESS"
 
static final String EVT_PLAY_DURATION = "EVT_PLAY_DURATION"
 
static final String EVT_PLAYABLE_DURATION_MS = "EVT_PLAYABLE_DURATION_MS"
 
static final String EVT_PLAYABLE_RATE = "EVT_PLAYABLE_RATE"
 
static final String EVT_USERID = "EVT_USERID"
 
static final String EVT_ID = "EVT_ID"
 
static final String EVT_REPORT_TOKEN = "EVT_REPORT_TOKEN"
 
static final String EVT_STREAM_TYPE = "EVT_STREAM_TYPE"
 
static final String EVT_PLAYABLE_DURATION = "EVT_PLAYABLE_DURATION"
 
static final String EVT_IMAGESPRIT_WEBVTTURL = "EVT_IMAGESPRIT_WEBVTTURL"
 
static final String EVT_IMAGESPRIT_IMAGEURL_LIST = "EVT_IMAGESPRIT_IMAGEURL_LIST"
 
static final String EVT_DRM_TYPE = "EVT_DRM_TYPE"
 
static final String EVT_CODEC_TYPE = "EVT_CODEC_TYPE"
 
static final String EVT_KEY_FRAME_CONTENT_LIST = "EVT_KEY_FRAME_CONTENT_LIST"
 
static final String EVT_KEY_FRAME_TIME_LIST = "EVT_KEY_FRAME_TIME_LIST"
 
static final String EVT_KEY_SELECT_TRACK_INDEX = "EVT_KEY_SELECT_TRACK_INDEX"
 
static final String EVT_KEY_SELECT_TRACK_ERROR_CODE = "EVT_KEY_SELECT_TRACK_ERROR_CODE"
 
static final String EVT_KEY_VIDEO_ROTATION = "EVT_KEY_VIDEO_ROTATION"
 
static final String NET_STATUS_CPU_USAGE = "CPU_USAGE"
 
static final String NET_STATUS_VIDEO_WIDTH = "VIDEO_WIDTH"
 
static final String NET_STATUS_VIDEO_HEIGHT = "VIDEO_HEIGHT"
 
static final String NET_STATUS_VIDEO_FPS = "VIDEO_FPS"
 
static final String NET_STATUS_VIDEO_GOP = "VIDEO_GOP"
 
static final String NET_STATUS_VIDEO_BITRATE = "VIDEO_BITRATE"
 
static final String NET_STATUS_AUDIO_BITRATE = "AUDIO_BITRATE"
 
static final String NET_STATUS_NET_SPEED = "NET_SPEED"
 
static final String NET_STATUS_AUDIO_CACHE = "AUDIO_CACHE"
 
static final String NET_STATUS_VIDEO_CACHE = "VIDEO_CACHE"
 
static final String NET_STATUS_AUDIO_INFO = "AUDIO_PLAY_INFO"
 
static final String NET_STATUS_NET_JITTER = "NET_JITTER"
 
static final String NET_STATUS_SERVER_IP = "SERVER_IP"
 
static final String NET_STATUS_VIDEO_DPS = "VIDEO_DPS"
 
static final String NET_STATUS_QUALITY_LEVEL = "NET_QUALITY_LEVEL"
 
static final int MEDIA_TYPE_AUTO = TXVCubePlayerParams.MEDIA_TYPE_AUTO
 
static final int MEDIA_TYPE_HLS_VOD = TXVCubePlayerParams.MEDIA_TYPE_HLS_VOD
 
static final int MEDIA_TYPE_HLS_LIVE = TXVCubePlayerParams.MEDIA_TYPE_HLS_LIVE
 
static final int INDEX_AUTO = ITXVCubePlayer.INDEX_AUTO
 

Field Documentation

◆ EVT_BLOCK_DURATION

final String EVT_BLOCK_DURATION = "EVT_BLOCK_DURATION"
static

The lag duration.

◆ EVT_CODEC_TYPE

final String EVT_CODEC_TYPE = "EVT_CODEC_TYPE"
static

The video encoding type.

◆ EVT_DESCRIPTION

final String EVT_DESCRIPTION = "EVT_MSG"
static

The event description.

◆ EVT_DRM_TYPE

final String EVT_DRM_TYPE = "EVT_DRM_TYPE"
static

The encryption type.

◆ EVT_GET_MSG

final String EVT_GET_MSG = "EVT_GET_MSG"
static

The message content. This field is used to get the message content when the PLAY_EVT_GET_MESSAGE event is received.

◆ EVT_ID

final String EVT_ID = "EVT_ID"
static

The event ID.

◆ EVT_IMAGESPRIT_IMAGEURL_LIST

final String EVT_IMAGESPRIT_IMAGEURL_LIST = "EVT_IMAGESPRIT_IMAGEURL_LIST"
static

The download URL of the image sprite.

◆ EVT_IMAGESPRIT_WEBVTTURL

final String EVT_IMAGESPRIT_WEBVTTURL = "EVT_IMAGESPRIT_WEBVTTURL"
static

The download URL of the image sprite WebVTT file.

◆ EVT_KEY_FRAME_CONTENT_LIST

final String EVT_KEY_FRAME_CONTENT_LIST = "EVT_KEY_FRAME_CONTENT_LIST"
static

Video key frame description information.

◆ EVT_KEY_FRAME_TIME_LIST

final String EVT_KEY_FRAME_TIME_LIST = "EVT_KEY_FRAME_TIME_LIST"
static

Key frame time (seconds)

◆ EVT_KEY_SELECT_TRACK_ERROR_CODE

final String EVT_KEY_SELECT_TRACK_ERROR_CODE = "EVT_KEY_SELECT_TRACK_ERROR_CODE"
static

Return error code for switching media tracks.

◆ EVT_KEY_SELECT_TRACK_INDEX

final String EVT_KEY_SELECT_TRACK_INDEX = "EVT_KEY_SELECT_TRACK_INDEX"
static

Switched media track index.

◆ EVT_KEY_VIDEO_ROTATION

final String EVT_KEY_VIDEO_ROTATION = "EVT_KEY_VIDEO_ROTATION"
static

Video rotation angle.

◆ EVT_PARAM1

final String EVT_PARAM1 = "EVT_PARAM1"
static

Event parameter 1.

◆ EVT_PARAM2

final String EVT_PARAM2 = "EVT_PARAM2"
static

Event parameter 2.

◆ EVT_PLAY_COVER_URL

final String EVT_PLAY_COVER_URL = "EVT_PLAY_COVER_URL"
static

The video thumbnail.

◆ EVT_PLAY_DESCRIPTION

final String EVT_PLAY_DESCRIPTION = "EVT_PLAY_DESCRIPTION"
static

The video description.

◆ EVT_PLAY_DURATION

final String EVT_PLAY_DURATION = "EVT_PLAY_DURATION"
static

The total playback duration.

◆ EVT_PLAY_DURATION_MS

final String EVT_PLAY_DURATION_MS = "EVT_PLAY_DURATION_MS"
static

The total playback duration in milliseconds.

◆ EVT_PLAY_NAME

final String EVT_PLAY_NAME = "EVT_PLAY_NAME"
static

The video name.

◆ EVT_PLAY_PROGRESS

final String EVT_PLAY_PROGRESS = "EVT_PLAY_PROGRESS"
static

The playback progress.

◆ EVT_PLAY_PROGRESS_MS

final String EVT_PLAY_PROGRESS_MS = "EVT_PLAY_PROGRESS_MS"
static

The playback progress in milliseconds.

◆ EVT_PLAY_URL

final String EVT_PLAY_URL = "EVT_PLAY_URL"
static

The video URL.

◆ EVT_PLAYABLE_DURATION

final String EVT_PLAYABLE_DURATION = "EVT_PLAYABLE_DURATION"
static

The playable duration of the VOD file.

◆ EVT_PLAYABLE_DURATION_MS

final String EVT_PLAYABLE_DURATION_MS = "EVT_PLAYABLE_DURATION_MS"
static

The playable duration of the VOD file in milliseconds.

◆ EVT_PLAYABLE_RATE

final String EVT_PLAYABLE_RATE = "EVT_PLAYABLE_RATE"
static

The playback speed.

◆ EVT_REPORT_TOKEN

final String EVT_REPORT_TOKEN = "EVT_REPORT_TOKEN"
static

The data reporting token.

◆ EVT_STREAM_TYPE

final String EVT_STREAM_TYPE = "EVT_STREAM_TYPE"
static

The event stream type.

◆ EVT_TIME

final String EVT_TIME = "EVT_TIME"
static

The event occurrence time.

◆ EVT_USERID

final String EVT_USERID = "EVT_USERID"
static

◆ EVT_UTC_TIME

final String EVT_UTC_TIME = "EVT_UTC_TIME"
static

The UTC time.

◆ INDEX_AUTO

final int INDEX_AUTO = ITXVCubePlayer.INDEX_AUTO
static

The index for adaptive bitrate.

◆ MEDIA_TYPE_AUTO

final int MEDIA_TYPE_AUTO = TXVCubePlayerParams.MEDIA_TYPE_AUTO
static

The auto type. It is not supported by adaptive bitrate streaming currently.

◆ MEDIA_TYPE_HLS_LIVE

final int MEDIA_TYPE_HLS_LIVE = TXVCubePlayerParams.MEDIA_TYPE_HLS_LIVE
static

The HLS live stream media asset for adaptive bitrate streaming.

◆ MEDIA_TYPE_HLS_VOD

final int MEDIA_TYPE_HLS_VOD = TXVCubePlayerParams.MEDIA_TYPE_HLS_VOD
static

The HLS VOD media asset for adaptive bitrate streaming.

◆ NET_STATUS_AUDIO_BITRATE

final String NET_STATUS_AUDIO_BITRATE = "AUDIO_BITRATE"
static

Push: the bitrate of the sent audio data in Kbps; pull: the bitrate of the received audio data in Kbps.

◆ NET_STATUS_AUDIO_CACHE

final String NET_STATUS_AUDIO_CACHE = "AUDIO_CACHE"
static

Push: the number of audio frames cached but not sent by the sender; pull: the total duration of audio frames received but not played back by the receiver.

◆ NET_STATUS_AUDIO_INFO

final String NET_STATUS_AUDIO_INFO = "AUDIO_PLAY_INFO"
static

The audio information of the current stream, including sample rate and number of sound channels.

◆ NET_STATUS_CPU_USAGE

final String NET_STATUS_CPU_USAGE = "CPU_USAGE"
static

The CPU utilization.

◆ NET_STATUS_NET_JITTER

final String NET_STATUS_NET_JITTER = "NET_JITTER"
static

The network jitter. The greater the value, the greater the jitter, and the more unstable the network.

◆ NET_STATUS_NET_SPEED

final String NET_STATUS_NET_SPEED = "NET_SPEED"
static

Push: the total bitrate of the sent audio/video data in Kbps; pull: the total bitrate of the received audio/video data in Kbps.

◆ NET_STATUS_QUALITY_LEVEL

final String NET_STATUS_QUALITY_LEVEL = "NET_QUALITY_LEVEL"
static

The network quality. Valid values: 0: undefined; 1: excellent; 2: good; 3: fair; 4: poor; 5: very poor; 6: unavailable.

◆ NET_STATUS_SERVER_IP

final String NET_STATUS_SERVER_IP = "SERVER_IP"
static

The connected server IP.

◆ NET_STATUS_VIDEO_BITRATE

final String NET_STATUS_VIDEO_BITRATE = "VIDEO_BITRATE"
static

Push: the bitrate of the sent video data in Kbps; pull: the bitrate of the received video data in Kbps.

◆ NET_STATUS_VIDEO_CACHE

final String NET_STATUS_VIDEO_CACHE = "VIDEO_CACHE"
static

Push: the number of video frames cached but not sent by the sender; pull: the total duration of video frames received but not rendered by the receiver.

◆ NET_STATUS_VIDEO_DPS

final String NET_STATUS_VIDEO_DPS = "VIDEO_DPS"
static

The current frame rate of the video output by the decoder (for VOD)

◆ NET_STATUS_VIDEO_FPS

final String NET_STATUS_VIDEO_FPS = "VIDEO_FPS"
static

The current video frame rate, i.e., how many image frames the video encoder generates per second.

◆ NET_STATUS_VIDEO_GOP

final String NET_STATUS_VIDEO_GOP = "VIDEO_GOP"
static

The current video group of pictures (GOP), i.e., the interval between two keyframes in seconds.

◆ NET_STATUS_VIDEO_HEIGHT

final String NET_STATUS_VIDEO_HEIGHT = "VIDEO_HEIGHT"
static

The resolution height.

◆ NET_STATUS_VIDEO_WIDTH

final String NET_STATUS_VIDEO_WIDTH = "VIDEO_WIDTH"
static

The resolution width.

◆ RENDER_MODE_ADJUST_RESOLUTION

final int RENDER_MODE_ADJUST_RESOLUTION = 1
static

The video image is scaled proportionally to fit the screen. Neither side exceeds the screen after scaling. The image is centered, and there may be black bars.

◆ RENDER_MODE_FULL_FILL_SCREEN

final int RENDER_MODE_FULL_FILL_SCREEN = 0
static

The video image is scaled proportionally to fill the entire screen, and the excess parts are cropped. There are no black bars in this mode.

◆ RENDER_ROTATION_LANDSCAPE

final int RENDER_ROTATION_LANDSCAPE = 270
static

Landscape.

◆ RENDER_ROTATION_PORTRAIT

final int RENDER_ROTATION_PORTRAIT = 0
static

Portrait.

◆ VOD_PLAY_ERR_FILE_NOT_FOUND

final int VOD_PLAY_ERR_FILE_NOT_FOUND = -2303
static

The file does not exist.

◆ VOD_PLAY_ERR_GET_PLAYINFO_FAIL

final int VOD_PLAY_ERR_GET_PLAYINFO_FAIL = -2306
static

Failed to get the information of the VOD file.

◆ VOD_PLAY_ERR_HEVC_DECODE_FAIL

final int VOD_PLAY_ERR_HEVC_DECODE_FAIL = -2304
static

Failed to decode with H.265.

◆ VOD_PLAY_ERR_HLS_KEY

final int VOD_PLAY_ERR_HLS_KEY = -2305
static

Failed to get the HLS decryption key.

◆ VOD_PLAY_ERR_INVALID_LICENSE

final int VOD_PLAY_ERR_INVALID_LICENSE = -5
static

The license was invalid, and playback failed.

◆ VOD_PLAY_ERR_NET_DISCONNECT

final int VOD_PLAY_ERR_NET_DISCONNECT = -2301
static

The network was disconnected and could not be connected again after multiple retries. You can restart the player to perform more connection retries.

◆ VOD_PLAY_EVT_CHANGE_RESOLUTION

final int VOD_PLAY_EVT_CHANGE_RESOLUTION = 2009
static

The video resolution changed.

◆ VOD_PLAY_EVT_CHANGE_ROTATION

final int VOD_PLAY_EVT_CHANGE_ROTATION = 2011
static

Video rotation information.

◆ VOD_PLAY_EVT_DNS_RESOLVED

final int VOD_PLAY_EVT_DNS_RESOLVED = 2018
static

VOD event: DNS resolution was completed (internal SDK event, which will not be thrown out).

◆ VOD_PLAY_EVT_FIRST_VIDEO_PACKET

final int VOD_PLAY_EVT_FIRST_VIDEO_PACKET = 2017
static

VOD event: The first data frame was received (internal SDK event, which will not be thrown out).

◆ VOD_PLAY_EVT_GET_PLAYINFO_SUCC

final int VOD_PLAY_EVT_GET_PLAYINFO_SUCC = 2010
static

Obtained the VOD file information successfully.

◆ VOD_PLAY_EVT_LOOP_ONCE_COMPLETE

final int VOD_PLAY_EVT_LOOP_ONCE_COMPLETE = 6001
static

VOD event: the end of a round of playback (Version 10.8 is open to the public)

◆ VOD_PLAY_EVT_PLAY_BEGIN

final int VOD_PLAY_EVT_PLAY_BEGIN = 2004
static

Video playback started.

◆ VOD_PLAY_EVT_PLAY_END

final int VOD_PLAY_EVT_PLAY_END = 2006
static

Video playback ended.

◆ VOD_PLAY_EVT_PLAY_LOADING

final int VOD_PLAY_EVT_PLAY_LOADING = 2007
static

The video is loading.

◆ VOD_PLAY_EVT_PLAY_PROGRESS

final int VOD_PLAY_EVT_PLAY_PROGRESS = 2005
static

Video playback progress.

◆ VOD_PLAY_EVT_RCV_FIRST_AUDIO_FRAME

final int VOD_PLAY_EVT_RCV_FIRST_AUDIO_FRAME = 2026
static

The audio was played back for the first time.

◆ VOD_PLAY_EVT_RCV_FIRST_I_FRAME

final int VOD_PLAY_EVT_RCV_FIRST_I_FRAME = 2003
static

The first video data packet (IDR) was received.

◆ VOD_PLAY_EVT_SEEK_COMPLETE

final int VOD_PLAY_EVT_SEEK_COMPLETE = 2019
static

VOD event: Video playback seeking was completed (internal SDK event, which will not be thrown out).

◆ VOD_PLAY_EVT_START_VIDEO_DECODER

final int VOD_PLAY_EVT_START_VIDEO_DECODER = 2008
static

The decoder started.

◆ VOD_PLAY_EVT_TCP_CONNECT_SUCC

final int VOD_PLAY_EVT_TCP_CONNECT_SUCC = 2016
static

VOD event: TCP connection succeeded (internal SDK event, which will not be thrown out).

◆ VOD_PLAY_EVT_VOD_LOADING_END

final int VOD_PLAY_EVT_VOD_LOADING_END = 2014
static

VOD event: Video loading ended.

◆ VOD_PLAY_EVT_VOD_PLAY_PREPARED

final int VOD_PLAY_EVT_VOD_PLAY_PREPARED = 2013
static

VOD event: Video loading was completed.

◆ VOD_PLAY_WARNING_HW_ACCELERATION_FAIL

final int VOD_PLAY_WARNING_HW_ACCELERATION_FAIL = 2106
static

Failed to start the hardware decoder, and the software decoder was used instead.

◆ VOD_PLAY_WARNING_RECONNECT

final int VOD_PLAY_WARNING_RECONNECT = 2103
static

The network was disconnected, and automatic reconnection was performed (which will be canceled if failed for three times in a row).