VeLivePlayerObserver constructor
VeLivePlayerObserver({
- void onError(
- VeLivePlayerError error
- void onFirstVideoFrameRender(
- bool isFirstFrame
- void onFirstAudioFrameRender(
- bool isFirstFrame
- void onResolutionSwitch(
- VeLivePlayerResolution resolution,
- VeLivePlayerError? error,
- VeLivePlayerResolutionSwitchReason reason
- void onStallStart()?,
- void onStallEnd()?,
- void onVideoSizeChanged()?,
- void onVideoRenderStall(
- int stallTime
- void onAudioRenderStall(
- int stallTime
- void onPlayerStatusUpdate(
- VeLivePlayerStatus status
- void onStatistics(
- VeLivePlayerStatistics statistics
- void onReceiveSeiMessage(
- String message
- void onMainBackupSwitch(
- VeLivePlayerStreamType streamType,
- VeLivePlayerError? error
Implementation
VeLivePlayerObserver({
this.onError,
this.onFirstVideoFrameRender,
this.onFirstAudioFrameRender,
this.onResolutionSwitch,
this.onStallStart,
this.onStallEnd,
this.onVideoSizeChanged,
this.onVideoRenderStall,
this.onAudioRenderStall,
this.onPlayerStatusUpdate,
this.onStatistics,
// this.onRenderVideoFrame,
// this.onRenderAudioFrame,
this.onReceiveSeiMessage,
this.onMainBackupSwitch,
});