Check what audio stream format a browser supports in the public player

5 votes

In order to prevent users from encountering "broken" streams due to their browser not supporting the streams audio format AzuraCast should make use of the "HTMLMediaElement.canPlayType()" function to check each available stream for compatibility with the browser visiting the site and disable (or hide) the respective dropdown element for those users.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType

See the following GitHub issue for an example of this problem:
https://github.com/AzuraCast/AzuraCast/issues/3981

Planned Suggested by: Vaalyn Upvoted: 08 Sep, '23 Comments: 0

Comments: 0