Skip to main content

overwolf.windows.mediaplayerelement.setBounds

Overwolf APIs / overwolf / overwolf / windows / mediaPlayerElement / setBounds

function setBounds(
id: number,
x: number,
y: number,
width: number,
height: number,
callback: CallbackFunction<Result>,
): void;

Relocates the media player to a given location with given dimensions.

Parameters

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

Returns

void