Closed Barisukan closed 5 years ago
Hi, thanks for the PR, there are few errors in the build because mediaSession is not supported in all browsers so I made a few comments to fix them.
One more thing is TypeScript does not support mediaSession yet, so you get errors when accessing it. A quick workaround is to add the declaration in the shims-vue.d.ts file
interface Navigator { mediaSession: any; }
That way you get code completion when accessing mediaSession. 😃
Completely forgot that this runs on other browsers as well (was writing this using the chrome PWA, woops!) Went ahead and made the requested changes and it seemed to pass!
Merged. Thanks 👍
Adds support to the Next/Previous Track MediaKeys which allows the user to go to the next/previous song from their keyboard with ease.