mirror of
https://github.com/videojs/video.js.git
synced 2025-01-23 11:04:59 +02:00
lint
This commit is contained in:
parent
d892c1660e
commit
5314f5d961
@ -19,7 +19,9 @@
|
||||
|
||||
<script>
|
||||
var vid = document.getElementById('vid1');
|
||||
var player = videojs(vid);
|
||||
var player = videojs(vid, {
|
||||
mediaSession: true
|
||||
});
|
||||
|
||||
player.log('window.player created', player);
|
||||
|
||||
|
@ -117,6 +117,7 @@ export const initMediaSession = function() {
|
||||
};
|
||||
|
||||
this.on('playing', () => {
|
||||
// Called on each `playing` rather than `sourceset`, in case of multiple players on a page
|
||||
updateMediaSession();
|
||||
ms.playbackState = 'playing';
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user