Skip to content

Commit

Permalink
Update audio.js
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored Dec 17, 2024
1 parent d92b851 commit c783da0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media-session/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ async function showPictureInPictureWindow() {
await video.requestPictureInPicture();
}

/* Enter Picture-in-Picture automatically (supported since Chrome 133) */
/* Enter Picture-in-Picture (supported since Chrome 120) */

try {
navigator.mediaSession.setActionHandler('enterpictureinpicture', function() {
log('> Automatically enter picture-in-picture.');
log('> User clicked "Enter Picture-in-Picture" icon or we are eligible to automatically enter picture-in-picture.');
showPictureInPictureWindow();
});
} catch(error) {
Expand Down

0 comments on commit c783da0

Please sign in to comment.