D
D
DieZz2014-05-20 19:59:13
JavaScript
DieZz, 2014-05-20 19:59:13

How to turn off sound in VLC on page load?

I load several vlc plugins in the html page

<embed type="application/x-vlc-plugin" src="udp://@xxx.xxx.xxx.xxx:xxxx" width="285" height="200" id="vlc1">
<embed type="application/x-vlc-plugin" src="udp://@xxx.xxx.xxx.xxx:xxxx" width="285" height="200" id="vlc2">
...
<embed type="application/x-vlc-plugin" src="udp://@xxx.xxx.xxx.xxx:xxxx" width="285" height="200" id="vlcn">

How to automatically mute sound in all plugins on page load?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2014-05-20
@0neS

var vlc = document.getElementById("vlc1");
vlc.audio.mute = false;

https://wiki.videolan.org/Documentation:WebPlugin#...

D
DieZz, 2014-05-20
@DieZz

I tried, it doesn't work. If you hang it on the button, it works, but if it is in the onLoad method, it doesn't work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question