Is it possible to switch playing URLs without black screen?

This forum is about all development around libVLC.
avsuper
Blank Cone
Blank Cone
Posts: 13
Joined: 01 Apr 2018 04:22

Is it possible to switch playing URLs without black screen?

Postby avsuper » 01 Apr 2018 04:33

Trying to play several URLs using libvlc_media_list_player_play_item_at_index, but each time there is always a black screen when switching.
For example, the playlist is rtsp://192.168.0.101, rtsp://rtsp://192.168.0.102, rtsp://192.168.0.103
calling libvlc_media_list_player_play_item_at_index(p_listPlayer, 0) to play URL No. 1,
and then after 10 seconds, calling libvlc_media_list_player_play_item_at_index(p_listPlayer, 1) to play URL No.2,
at this time, the screen will be black for about one second.
Maybe this function calls media_player_stop internally?
Is it possible keep playing and switching without the black screen? Any options should I add to the media ot player?
Is there any options like bClearScreenOnStop?

Thanks for your reply in advance :-)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Is it possible to switch playing URLs without black screen?

Postby Jean-Baptiste Kempf » 03 Apr 2018 09:21

rtsp is long to setup, so 1second is not surprising.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

avsuper
Blank Cone
Blank Cone
Posts: 13
Joined: 01 Apr 2018 04:22

Re: Is it possible to switch playing URLs without black screen?

Postby avsuper » 03 Apr 2018 17:18

1 second is OK. I mean if it is possible to keep the last frame when switching to next URL?
I found that when using v2.2.x, switch from one url to another will not show a black screen, only v3.0.x has this problem...
wield...
Do you know what has been changed?

avsuper
Blank Cone
Blank Cone
Posts: 13
Joined: 01 Apr 2018 04:22

Re: Is it possible to switch playing URLs without black screen?

Postby avsuper » 28 Apr 2018 04:40

Anybody can give a clue? Is there any parameters or options that can be set to keep screen not cleaned when playing? Thanks!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 37 guests