Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Video Volume

27 Jul 2017, 10:26

Hi Karl,

the default volume of the embed mp4 video is 100%.  I like to set 50% as default.

so, is the  code below correct?
Code
onloadstart="this.volume=0.5" 
like this:
Code
<video  onloadstart="this.volume=0.5" width="100%" preload="metadata" controls >
I tested it, and seems it work ok, but wanted to double check if this is ok with X3.
Best
Leon
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Video Volume

27 Jul 2017, 11:05

If it works fine, then yes that seems to be the best (and maybe only) way to set a default volume for the video. This value will not affect anything else apart from the video.

Personally, I would not wish to pre-anticipate volume for any visitors. How do you know what volume the visitor has on their desktop/device? Normally, the visitor would have their device volume adjusted perfectly for anything that plays from their device (including videos and music). Just a personal opinion :wink:
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: Video Volume

27 Jul 2017, 11:10

thanks, good point, I will test some people here to get the best number, 0.5 or 1, 

thanks again.

Leon