jmonta01 / somafm-webplayer

A modern web player to stream soma fm radio stations.
Apache License 2.0
21 stars 6 forks source link

Initial Volume #12

Closed rustyhodge closed 9 years ago

rustyhodge commented 9 years ago

Initial volume should start at 50%, and volume setting should be stored in a cookie or sticky across sessions. Listeners are complaining that the playback starts too loud in many cases. (Apparently especially an issue in Windows)

rustyhodge commented 9 years ago

This may help: http://stackoverflow.com/questions/7582385/is-there-a-way-to-set-the-default-html5-video-volume

You can affect the volume property of the

document.getElementsByTagName('video')[0].volume = 0.5; If using jQuery then you can use their prop method to alter the volume in a jQuery collection object like so:

$("video").prop("volume", 0.5); This will alter all DOM elements in the collection.