loadResourceWithConfig abstract method

Future<ZegoMediaPlayerLoadResourceResult> loadResourceWithConfig(
  1. ZegoMediaPlayerResource resource
)

Load local or network media resource with config.

Available: since 3.3.0 Description: Load media resources. Use case: Developers can load the absolute path to the local resource or the URL of the network resource incoming. When to call: Called after the engine createEngine has been initialized and the media player createMediaPlayer has been created. Related APIs: Support for loading resources through the loadResourceWithPosition or loadResourceFromMediaData interface. Caution: If the mediaplayer has already loaded resources or is in the process of playing, please first call the stop interface to halt the playback, and then proceed to call the interface to load the media resources; failure to do so will result in an unsuccessful load.

  • resource Multimedia resources that need to be loaded.
  • Returns Callback result of loading media resource.

Implementation

Future<ZegoMediaPlayerLoadResourceResult> loadResourceWithConfig(
    ZegoMediaPlayerResource resource);