Page 1 of 1

Disable automatic video playing

Posted: 05 Feb 2019 00:46
by aitte
Good evening,

i am developing a embedded music player with libVLC using the media list.
When a file in a video format appears to play, libVLC automatically opens a new window
with the content of the video and starts playing (music and video).

But it should not play the video. I would like to disable this but don't know how.
I searched the library, and tried to set

Code: Select all

libvlc_media_player_set_xwindow(vlc_player, NULL);
but it did not work. Video is not configured in my application, so there is not drawing area set or something similiar.

How can i disable the behavior of opening a new window with the movie contents and simply play the audio content?

I hope for your help!

Best regards
Alex

PS: I'm sorry for some mistakes. I'm from germany and not english.

Re: Disable automatic video playing

Posted: 05 Feb 2019 02:56
by mfkl

Re: Disable automatic video playing

Posted: 05 Feb 2019 11:41
by Moriquendi
"--qt-start-minimized" can also work. Not sure if it is a good solution though.

Re: Disable automatic video playing

Posted: 05 Feb 2019 22:03
by aitte
Thank you!
I use now:

Code: Select all

static const char* const vlc_param[] = { "--no-video\0" }; // Kein neues Fenster für Videowiedergabe öffnen, beim Abspielen von Videodateien // VLC initialisieren vlc_instanz = libvlc_new(1, vlc_param);
That worked!