VeLivePlayerObserver constructor

VeLivePlayerObserver({
  1. void onError(
    1. VeLivePlayerError error
    )?,
  2. void onFirstVideoFrameRender(
    1. bool isFirstFrame
    )?,
  3. void onFirstAudioFrameRender(
    1. bool isFirstFrame
    )?,
  4. void onResolutionSwitch(
    1. VeLivePlayerResolution resolution,
    2. VeLivePlayerError? error,
    3. VeLivePlayerResolutionSwitchReason reason
    )?,
  5. void onStallStart()?,
  6. void onStallEnd()?,
  7. void onVideoSizeChanged(
    1. int width,
    2. int height
    )?,
  8. void onVideoRenderStall(
    1. int stallTime
    )?,
  9. void onAudioRenderStall(
    1. int stallTime
    )?,
  10. void onPlayerStatusUpdate(
    1. VeLivePlayerStatus status
    )?,
  11. void onStatistics(
    1. VeLivePlayerStatistics statistics
    )?,
  12. void onReceiveSeiMessage(
    1. String message
    )?,
  13. void onMainBackupSwitch(
    1. VeLivePlayerStreamType streamType,
    2. 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,
});