setVolume (Browser)

From Engineering Client Portal

Revision as of 18:53, 7 June 2023 by NickParrucci (talk | contribs) (Created page with "{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Browser SDK API Reference}} {{CurrentBreadcrumb}} Category:Digital Category:Browser SDK API Reference Since playe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Engineering Portal / Digital / Browser SDK API Reference / setVolume (Browser)

Since players have different volume ranges eg. 0-1, 0-10 or 0-100, when tracking audibility clients will have to provide the volume in %. Volume will be passed into the Browser SDK via the event 61 or setVolume and a value between 0 - 100 is expected.

Syntax

ggPM('61', volume);
//or
ggPM('setVolume', volume);
//volume is the Audibility % (0-100); 0=muted

Input Parameters

Parameter Description
volume An integer value between 0 - 100

Notes

Negative volume values will be ignored.