Skip to main content

overwolf.windows.mediaplayerelement.setVolume

Overwolf APIs / overwolf / overwolf / windows / mediaPlayerElement / setVolume

function setVolume(
id: number,
volume: number,
callback: CallbackFunction<Result>,
): void;

Sets the volume.

Parameters

ParameterTypeDescription
idnumberThe id of the player.
volumenumberA volume between 0 and 100 (inclusive).
callbackCallbackFunction<Result>A callback function which will be called with the status of the request.

Returns

void