forked from forktown/watch-party
Don't setActionHandler with skipad
Chrome does not support the 'skipad' action, and it's not like we're really doing anything on a media event for that anyways, so we're just removing it here.
This commit is contained in:
parent
b3d2e7c568
commit
ed953facb3
1 changed files with 0 additions and 2 deletions
|
@ -109,7 +109,6 @@ const createVideoElement = (videoUrl, subtitles) => {
|
||||||
navigator.mediaSession.setActionHandler("seekto", null);
|
navigator.mediaSession.setActionHandler("seekto", null);
|
||||||
navigator.mediaSession.setActionHandler("previoustrack", null);
|
navigator.mediaSession.setActionHandler("previoustrack", null);
|
||||||
navigator.mediaSession.setActionHandler("nexttrack", null);
|
navigator.mediaSession.setActionHandler("nexttrack", null);
|
||||||
navigator.mediaSession.setActionHandler("skipad", null);
|
|
||||||
} else {
|
} else {
|
||||||
// disable media button support by ignoring the events
|
// disable media button support by ignoring the events
|
||||||
navigator.mediaSession.setActionHandler("play", () => {});
|
navigator.mediaSession.setActionHandler("play", () => {});
|
||||||
|
@ -120,7 +119,6 @@ const createVideoElement = (videoUrl, subtitles) => {
|
||||||
navigator.mediaSession.setActionHandler("seekto", () => {});
|
navigator.mediaSession.setActionHandler("seekto", () => {});
|
||||||
navigator.mediaSession.setActionHandler("previoustrack", () => {});
|
navigator.mediaSession.setActionHandler("previoustrack", () => {});
|
||||||
navigator.mediaSession.setActionHandler("nexttrack", () => {});
|
navigator.mediaSession.setActionHandler("nexttrack", () => {});
|
||||||
navigator.mediaSession.setActionHandler("skipad", () => {});
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue