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.

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

Implementation

Future<ZegoMediaPlayerLoadResourceResult> loadResourceWithConfig(
    ZegoMediaPlayerResource resource);