GM-Script-Writer-62850
GM-Script-Writer-62850

Reputation: 373

HTML5 audio detecting default controls

I am using the default controls in my project, the problem is at least some mobile browsers (chrome and adbock browser on android) lack a standard control, volume; it only has mute... Is there a way to detect the lack of a volume option or do I have to check the useragent in javascript to and set the volume to 100% so they are not locked at my default volume of 25%

Upvotes: 1

Views: 39

Answers (1)

user1693593
user1693593

Reputation:

There is no good way to do this natively and the user-agent is not reliable. The UI provided by the browser may also change in appearance and behavior over time.

The only way to fully control the player's UI is to build a custom one.

Upvotes: 1

Related Questions