dailymotion / vast-client-js

VAST (up to 6) parsing library for JavaScript
https://iabtechlab.com/wp-content/uploads/2022/09/VAST_4.3.pdf
MIT License
367 stars 215 forks source link

Fix/add muted argument to constructor #443

Closed GuillaumeBAECHLER closed 1 year ago

GuillaumeBAECHLER commented 1 year ago

Description

The setMuted method assumes that muted property is false by default. Thus, the unmute tracking event will not fire if the player was in a muted state.

Changes

This PR adds a way to provide initial mute state through constructor arguments.

Type