open
Opens a media resource.
virtual int open(const char* url, int64_t startPos) = 0;
Note: open is an asynchronous call.
Timing
You can call this method before or after joining a channel.
Parameters
- url
- Path to the media file, supports both local and online paths.
- startPos
- Starting position of playback in milliseconds. Default is 0.
Return Values
- 0: Success.
- < 0: Failure.