How to start viewing ip-cam with muted audio?

This forum is about all development around libVLC.
df4
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jan 2013 09:59

How to start viewing ip-cam with muted audio?

Postby df4 » 31 Aug 2014 04:47

I try so:

Code: Select all

libvlc_media_player_play(vlcMediaPlayer); libvlc_audio_set_mute(vlcMediaPlayer, 0);
but it does not effect - the sound is not muted

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to start viewing ip-cam with muted audio?

Postby Rémi Denis-Courmont » 31 Aug 2014 10:22

Setting mute to false, means no muting...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

df4
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jan 2013 09:59

Re: How to start viewing ip-cam with muted audio?

Postby df4 » 01 Sep 2014 03:11

Setting mute to false, means no muting...
Ok, I tried so:

Code: Select all

libvlc_media_player_play(vlcMediaPlayer); libvlc_audio_set_mute(vlcMediaPlayer, 1);
but again it has no effect - the sound is not muted

I tried to get log messages via

Code: Select all

libvlc_log_set
And I received the message:

Code: Select all

No active audio output
As a result, it managed to be made after a successful call of

Code: Select all

libvlc_media_player_is_playing
function and pause waiting (I waited three seconds)



Is it possible to achieve that playing was initially carried out with the muted sound?

ps: i use LibVLC v2.1.2

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to start viewing ip-cam with muted audio?

Postby Rémi Denis-Courmont » 01 Sep 2014 17:37

You did not read the documentation, did you?
/**
* Set mute status.
*
* \param p_mi media player
* \param status If status is true then mute, otherwise unmute
* \warning This function does not always work. If there are no active audio
* playback stream, the mute status might not be available. If digital
* pass-through (S/PDIF, HDMI...) is in use, muting may be unapplicable. Also
* some audio output plugins do not support muting at all.
* \note To force silent playback, disable all audio tracks. This is more
* efficient and reliable than mute.
*/
You need to update to LibVLC 2.2 if you want to set mute at any time.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

df4
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jan 2013 09:59

Re: How to start viewing ip-cam with muted audio?

Postby df4 » 02 Sep 2014 10:48

You need to update to LibVLC 2.2 if you want to set mute at any time.
Thank you!

df4
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jan 2013 09:59

Re: How to start viewing ip-cam with muted audio?

Postby df4 » 02 Sep 2014 11:00

You did not read the documentation, did you?
* \note To force silent playback, disable all audio tracks. This is more
* efficient and reliable than mute.
*/
How to disable all audio tracks?

df4
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jan 2013 09:59

Re: How to start viewing ip-cam with muted audio?

Postby df4 » 19 Sep 2014 23:54

up

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to start viewing ip-cam with muted audio?

Postby Jean-Baptiste Kempf » 10 Dec 2014 15:24

Loop on them and disable them.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 15 guests