Skip to main content

overwolf.windows.mediaplayerelement.create

Overwolf APIs / overwolf / overwolf / windows / mediaPlayerElement / create

function create(
x: number,
y: number,
width: number,
height: number,
callback: CallbackFunction<CreateResult>,
): void;

Creates a media player a places it in the given location with given dimensions.

Parameters

ParameterTypeDescription
xnumberThe top position of the player.
ynumberThe left position of the player.
widthnumberThe width of the player.
heightnumberThe height of the player.
callbackCallbackFunction<CreateResult>A callback function which will be called with the status of the request.

Returns

void