Vlc plugin 2.1.0.0 mute function now doesn´t working

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Budvar
New Cone
New Cone
Posts: 1
Joined: 01 Oct 2013 15:05

Vlc plugin 2.1.0.0 mute function now doesn´t working

Postby Budvar » 01 Oct 2013 15:14

Hello, when I was updated VLC to actual version 2.1.0, my embeded streams started unmuted, before update with older plugin was mute function fully functional.
Is in 2.1.0.0. plugin some new method, how to make embeded plugin muted ?

My code is...
Can you tell me, how to fix mute function ?
Thank you...

Edited: i try unistall 2.1. and install vlc-2.0.6-win32 and mute is functional...

Code: Select all

<html> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="300" height="225" id="vlc"> </embed> <script language="Javascript"> var vlc=document.getElementById("vlc"); var id=vlc.playlist.add("udp://@111.111.111.111:1111"); vlc.playlist.playItem(id); vlc.audio.toggleMute(); var seek_time = 1000 * 50; var volume_number = 10; </script> </html>

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Vlc plugin 2.1.0.0 mute function now doesn´t working

Postby da2424 » 01 Oct 2013 23:28

I can confirm this. Reproducable with activex- and mozilla-plugin.
It works only after about one second after the start of playback, I have the same problem with vlc.audio.volume. (https://forum.videolan.org/viewtopic.php?f=16&t=113301)

Alternatively, you can use the tag-attribute "mute" (https://wiki.videolan.org/Documentation ... attributes), but this attribute does not work, too...

rotterguy
New Cone
New Cone
Posts: 2
Joined: 16 Oct 2013 23:53

Re: Vlc plugin 2.1.0.0 mute function now doesn´t working

Postby rotterguy » 16 Oct 2013 23:56

I too am having this issue with the audio functions with Chrome and Mozilla. None of the audio functions (either embedded or javascript) had any effect on the actual volume of the video. Querying the audio object methods returned expected values... the sound just never changed.

Reverting my users back to 2.0.5 resolved the problem for me.

Lotesdelere
Cone Master
Cone Master
Posts: 9613
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Vlc plugin 2.1.0.0 mute function now doesn´t working

Postby Lotesdelere » 18 Oct 2013 09:52

You should create a new ticket on the VLC Trac with the link to this thread.

rotterguy
New Cone
New Cone
Posts: 2
Joined: 16 Oct 2013 23:53

Re: Vlc plugin 2.1.0.0 mute function now doesn´t working

Postby rotterguy » 18 Oct 2013 23:14

ticket 9696 created.

Thank you!

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Vlc plugin 2.1.0.0 mute function now doesn´t working

Postby da2424 » 22 Dec 2013 15:44

Because the problem is still not resolved, I have now developed a workaround, that allows to set audio-settings at the start of playback. With my code you can, for example, enable the mute-mode or set a custom volume.

Here is the code:

Code: Select all

<!DOCTYPE html> <html> <head> <title>VLC Workarround</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type="text/javascript"> //Options, which you want to set at start mute = false; volume = 50; settingsSet = false; window.addEventListener("load", start, false); function start(){ vlc = document.getElementById("obj_vlc"); registerVLCEvent("MediaPlayerOpening", handle_MediaPlayerOpening); registerVLCEvent("MediaPlayerTimeChanged", handle_MediaPlayerTimeChanged); } function handle_MediaPlayerOpening(){ //Set the Settings on every new opening settingsSet = false; } function handle_MediaPlayerTimeChanged(){ if(!settingsSet){ //Only from this point VLC will accept audio-settings vlc.audio.mute = mute; vlc.audio.volume = volume; settingsSet = true; //Set this settings only on the first calling of this event } } function registerVLCEvent(event, handler){ if(vlc.attachEvent){ // Microsoft vlc.attachEvent(event, handler); } else if(vlc.addEventListener){ // Mozilla: DOM level 2 vlc.addEventListener(event, handler, false); } else{ // DOM level 0 vlc["on" + event] = handler; } } </script> </head> <body> <h1>VLC Volume Workarround</h1> <embed id="obj_vlc" type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" target="http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi" style="width:600px; height:480px;"> </body> </html>
I hope I could help someone with the code ;)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 15 guests