Page 1 of 1

How to start viewing ip-cam with muted audio?

Posted: 31 Aug 2014 04:47
by df4
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

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

Posted: 31 Aug 2014 10:22
by Rémi Denis-Courmont
Setting mute to false, means no muting...

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

Posted: 01 Sep 2014 03:11
by df4
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

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

Posted: 01 Sep 2014 17:37
by Rémi Denis-Courmont
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.

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

Posted: 02 Sep 2014 10:48
by df4
You need to update to LibVLC 2.2 if you want to set mute at any time.
Thank you!

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

Posted: 02 Sep 2014 11:00
by df4
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?

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

Posted: 19 Sep 2014 23:54
by df4
up

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

Posted: 10 Dec 2014 15:24
by Jean-Baptiste Kempf
Loop on them and disable them.