onMediaPlayerNetworkEvent property

(void Function(ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerNetworkEvent networkEvent)?) onMediaPlayerNetworkEvent
read / write

The callback triggered when the network status of the media player changes.

Available since: 1.3.4 Description: The callback triggered when the network status of the media player changes. Trigger: When the media player is playing network resources, this callback will be triggered when the status change of the cached data. Restrictions: The callback will only be triggered when the network resource is played. Related APIs: setNetWorkBufferThreshold.

  • mediaPlayer Callback player object.
  • networkEvent Network status event.

Implementation

static void Function(ZegoMediaPlayer mediaPlayer,
    ZegoMediaPlayerNetworkEvent networkEvent)? onMediaPlayerNetworkEvent;