loadResource abstract method

Future<ZegoMediaPlayerLoadResourceResult> loadResource(
  1. String path
)

Load local or network media resource.

Available: since 1.3.4 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: It can be called after the engine by createEngine has been initialized and the media player has been created by createMediaPlayer. Related APIs: Resources can be loaded through the loadResourceWithPosition or loadResourceFromMediaData function.

  • path The absolute resource path or the URL of the network resource and cannot be null or "". Android can set this path string with Uri.
  • Returns Callback result of loading media resource.

Implementation

Future<ZegoMediaPlayerLoadResourceResult> loadResource(String path);