02.
<script>jwplayer.key=
'YOUR_KEY'
;</script>
03.
04.
05.
<div id=
"player"
>Loading the player...</div>
06.
07.
<script>
08.
09.
const
player = jwplayer(
'player'
).setup({
11.
volume: 10
12.
});
13.
14.
15.
player.on(
'pause'
, (event) => {
16.
alert(
'Why did my user pause their video instead of watching it?'
);
17.
});
18.
19.
20.
const
bumpIt = () => {
21.
const
vol = player.getVolume();
22.
player.setVolume(vol + 10);
23.
}
24.
document.querySelector(
'#bumpit'
).onclick = () => { bumpIt(); }
25.
</script>