overwolf.windows.mediaplayerelement.setVideo
Overwolf APIs / overwolf / overwolf / windows / mediaPlayerElement / setVideo
function setVideo(
id: number,
videoUrl: string,
callback: CallbackFunction<SetVideoResult>,
): void;
Sets the current video to be played.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | The id of the player. |
videoUrl | string | An url to the video. |
callback | CallbackFunction<SetVideoResult> | A callback function which will be called with the status of the request. If successful, the callback will contain the total seconds in the video. |
Returns
void