open [1/2]

Opens a media resource.

int open(String url, long startPos);

Supports playing URI files that start with content://.

Note: This method is asynchronous.

Timing

You can call this method before or after joining a channel.

Parameters

url
The path of the media file. Supports both local and online paths.
startPos
The start position for playback (in milliseconds, default is 0).

Return Values

  • 0: Success.
  • < 0: Failure.