V2TXLivePlayer class
Live stream player
Constructors
Properties
Methods
-
addListener(
V2TXLivePlayerObserver observer) → void - Add a player callback
-
destroy(
) → void - Destroy the instance
-
enableObserveVideoFrame(
bool enable, int pixelFormat, int bufferType) → Future< V2TXLiveCode> - Enable/disable the listening callback for video frames
-
enablePictureInPicture(
bool enable) → Future< V2TXLiveCode> - Whether to turn on picture-in-picture mode
-
enableReceiveSeiMessage(
bool enable, int payloadType) → Future< V2TXLiveCode> - Turn on receiving SEI messages
-
enableVolumeEvaluation(
int intervalMs) → Future< V2TXLiveCode> - Enable playback volume level prompts
-
isPlaying(
) → Future< V2TXLiveCode> - Whether the player is playing or not
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseAudio(
) → Future< V2TXLiveCode> - Pause the player's audio stream
-
pauseVideo(
) → Future< V2TXLiveCode> - Pause the player's video stream
-
removeListener(
V2TXLivePlayerObserver observer) → void - remove a player callback
-
resumeAudio(
) → Future< V2TXLiveCode> - Resume the player's audio stream
-
resumeVideo(
) → Future< V2TXLiveCode> - Restore the player's video stream
-
setCacheParams(
double minTime, double maxTime) → Future< V2TXLiveCode> - Set the minimum and maximum time (in seconds) for the player cache to automatically adjust
-
setPlayoutVolume(
int volume) → Future< V2TXLiveCode> - Set the player volume
-
setProperty(
String key, Object value) → Future< V2TXLiveCode> - Call the high-level API interface of V2TXLivePlayer
-
setRenderFillMode(
V2TXLiveFillMode mode) → Future< V2TXLiveCode> - Set the fill mode of the picture
-
setRenderRotation(
V2TXLiveRotation rotation) → Future< V2TXLiveCode> - Sets the rotation angle of the local rendered picture
-
setRenderViewID(
int viewID) → Future< V2TXLiveCode> - Set the ID of the rendered view
-
showDebugView(
bool isShow) → Future< void> - Display the dashboard
-
snapshot(
) → Future< V2TXLiveCode> - Capture the video during playback
-
startLivePlay(
String url) → Future< V2TXLiveCode> - Start playing the audio and video stream
-
stopPlay(
) → Future< V2TXLiveCode> - Stop playing the audio and video stream
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → Future< V2TXLivePlayer> - Create an instance