IMediaPlayerEvent

The IMediaPlayerEvent interface. Used for merging the callback interfaces corresponding to the objects in IMediaPlayer.

export type IMediaPlayerEvent = IMediaPlayerSourceObserver &
  IMediaPlayerAudioFrameObserver &
  IMediaPlayerVideoFrameObserver &
  IAudioSpectrumObserver;
This interface merges the following interfaces: You can call the addListener, removeListener, and removeAllListeners methods to add or remove the listeners for the callback events under the interfaces mentioned above.