Skip to main content

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

ParameterTypeDescription
idnumberThe id of the player.
videoUrlstringAn url to the video.
callbackCallbackFunction<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