You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently writing my own little media player app and try to get the media buttons working. For a plain HTML audio element, it works perfectly, but not with the IcyMetadataPlayer.
I finally could trace the issue back to this line. The called method completely clears any context from the current mediaSession by nulling the attributes of the audio element. Apparently, that disconnects the mediaSession from that specific audio element.
So, for a playing audio stream...
... the expected behavior is: Media buttons pressed in any order trigger their respective action
... the current behavior is: Media buttons work until I press pause. After that, media buttons don't work anymore until I restart the stream manually
I could also reproduce the issue your Bare HTML Demo (didn't try the others).
Browser: Opera 99
PS: I also checked older versions of IcyPlayer - Media Buttons worked until 1.17.5
The text was updated successfully, but these errors were encountered:
icecast-metadata-js/src/icecast-metadata-player/src/IcecastMetadataPlayer.js
Line 491 in 4abb117
I am currently writing my own little media player app and try to get the media buttons working. For a plain HTML audio element, it works perfectly, but not with the IcyMetadataPlayer.
I finally could trace the issue back to this line. The called method completely clears any context from the current mediaSession by nulling the attributes of the audio element. Apparently, that disconnects the mediaSession from that specific audio element.
So, for a playing audio stream...
... the expected behavior is: Media buttons pressed in any order trigger their respective action
... the current behavior is: Media buttons work until I press pause. After that, media buttons don't work anymore until I restart the stream manually
I could also reproduce the issue your Bare HTML Demo (didn't try the others).
Browser: Opera 99
PS: I also checked older versions of IcyPlayer - Media Buttons worked until 1.17.5
The text was updated successfully, but these errors were encountered: