Playing url stream - disable audio
Posted: 29 Jan 2022 15:36
Hi,
I'm playing an url using the libVLC in a C++ application I'm using to test the quality of the video, whenever I start the playback with:
I can listen to the audio even if my application is a console application that shows no video, is there a way to disable the audio ? Put on mute ?
I can see there is:
Is there a name I can use to tell VLC I want it on mute ? No Audio ?
In addition I would like to retrieve information like the video resolution and stream quality, are there properties exposed in order to do that ?
Thanks.
I'm playing an url using the libVLC in a C++ application I'm using to test the quality of the video, whenever I start the playback with:
Code: Select all
auto vlc_instance = VLC::Instance(0, nullptr);
auto media = VLC::Media(vlc_instance, url, VLC::Media::FromLocation);
auto mp = VLC::MediaPlayer(media);
mp.play();
I can see there is:
Code: Select all
mp.setAudioOutput("string");
In addition I would like to retrieve information like the video resolution and stream quality, are there properties exposed in order to do that ?
Thanks.