Code: Select all
libvlc_media_player_play(vlcMediaPlayer);
libvlc_audio_set_mute(vlcMediaPlayer, 0);
Code: Select all
libvlc_media_player_play(vlcMediaPlayer);
libvlc_audio_set_mute(vlcMediaPlayer, 0);
Ok, I tried so:Setting mute to false, means no muting...
Code: Select all
libvlc_media_player_play(vlcMediaPlayer);
libvlc_audio_set_mute(vlcMediaPlayer, 1);
Code: Select all
libvlc_log_set
Code: Select all
No active audio output
Code: Select all
libvlc_media_player_is_playing
You need to update to LibVLC 2.2 if you want to set mute at any time./**
* 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.
*/
Thank you!You need to update to LibVLC 2.2 if you want to set mute at any time.
How to disable all audio tracks?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.
*/
Return to “Development around libVLC”
Users browsing this forum: Majestic-12 [Bot] and 15 guests