Disable automatic video playing

This forum is about all development around libVLC.
aitte
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 28 Feb 2012 00:26

Disable automatic video playing

Postby aitte » 05 Feb 2019 00:46

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.

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: Disable automatic video playing

Postby mfkl » 05 Feb 2019 02:56

https://mfkl.github.io

Moriquendi
Blank Cone
Blank Cone
Posts: 74
Joined: 31 May 2011 16:22

Re: Disable automatic video playing

Postby Moriquendi » 05 Feb 2019 11:41

"--qt-start-minimized" can also work. Not sure if it is a good solution though.

aitte
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 28 Feb 2012 00:26

Re: Disable automatic video playing

Postby aitte » 05 Feb 2019 22:03

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!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests