From ed953facb3f4d25522c59781d654299f0f6538d4 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Thu, 17 Feb 2022 06:17:16 +0000 Subject: [PATCH] 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. --- frontend/lib/video.mjs | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/lib/video.mjs b/frontend/lib/video.mjs index 317a13d..88bc434 100644 --- a/frontend/lib/video.mjs +++ b/frontend/lib/video.mjs @@ -109,7 +109,6 @@ const createVideoElement = (videoUrl, subtitles) => { navigator.mediaSession.setActionHandler("seekto", null); navigator.mediaSession.setActionHandler("previoustrack", null); navigator.mediaSession.setActionHandler("nexttrack", null); - navigator.mediaSession.setActionHandler("skipad", null); } else { // disable media button support by ignoring the events navigator.mediaSession.setActionHandler("play", () => {}); @@ -120,7 +119,6 @@ const createVideoElement = (videoUrl, subtitles) => { navigator.mediaSession.setActionHandler("seekto", () => {}); navigator.mediaSession.setActionHandler("previoustrack", () => {}); navigator.mediaSession.setActionHandler("nexttrack", () => {}); - navigator.mediaSession.setActionHandler("skipad", () => {}); } return; }