switchWithUrl
Switches to a new URL during playback.
public void switchWithUrl(String url, boolean syncPts, AsyncCallback callback)
- Since
- Available since v4.5.1.
This method must be called when the SDK returns the player state as OPEN_COMPLETED.
Note: This method is only valid when the player opens a non-RTE URL.
Parameters
- url
- The URL resource to switch to.
- syncPts
-
- true: Synchronize playback position.
- false: (Default) Do not synchronize playback position.
- callback
- Callback for asynchronously notifying the result of the switch operation. You can get the result or error code via the
errparameter of this callback. See AsyncCallback.