import{Na as e}from"./chunk-RISKGE32.js";import"./chunk-6O6MLDWR.js";import"./chunk-F4AZU7R4.js";import"./chunk-GQY3J744.js";import{g as i,n as s}from"./chunk-CLPINNGF.js";s();i();async function t(){if("mediaSession"in navigator)return navigator.mediaSession.setActionHandler("nexttrack",()=>a("forward")),navigator.mediaSession.setActionHandler("seekforward",()=>a("forward")),navigator.mediaSession.setActionHandler("previoustrack",()=>a("backward")),navigator.mediaSession.setActionHandler("seekbackward",()=>a("backward")),navigator.mediaSession.setActionHandler("pause",()=>e.pause()),navigator.mediaSession.setActionHandler("play",()=>e.play()),navigator.mediaSession.setActionHandler("seekto",async n=>console.warn("Not implemented yet",n)),()=>{navigator.mediaSession.setActionHandler("nexttrack",null),navigator.mediaSession.setActionHandler("seekforward",null),navigator.mediaSession.setActionHandler("previoustrack",null),navigator.mediaSession.setActionHandler("seekbackward",null),navigator.mediaSession.setActionHandler("pause",null),navigator.mediaSession.setActionHandler("play",null),navigator.mediaSession.setActionHandler("seekto",null)}}var a=async n=>{n==="backward"?e.seekPrevious():e.seekNext()};export{t as default};
//# sourceMappingURL=init-W6D33X4Z.js.map
