How can i detect when there is no data to play in http stream mode?

This forum is about all development around libVLC.
xcdix666
New Cone
New Cone
Posts: 3
Joined: 23 Aug 2015 10:02

How can i detect when there is no data to play in http stream mode?

Postby xcdix666 » 23 Aug 2015 10:16

I am using libvlc to play video with http over network. When data is not available, player stops playing and hangs at http access Read function. How can i detect this hangs? When this happened i need to show some info. I know i can simply write some wrapper around standart http access, BUT, when input thread hangs at access->Read player can still play some demuxed data, how to detect when player is not playing and waiting for data from network? sorry for my english.

xcdix666
New Cone
New Cone
Posts: 3
Joined: 23 Aug 2015 10:02

Re: How can i detect when there is no data to play in http stream mode?

Postby xcdix666 » 23 Aug 2015 10:24

Now i am using es_out_Control(out, ES_OUT_GET_EMPTY, &es_empty) solution. But it is veeeeeeryy hacky. And buggy.

xcdix666
New Cone
New Cone
Posts: 3
Joined: 23 Aug 2015 10:02

Re: How can i detect when there is no data to play in http stream mode?

Postby xcdix666 » 23 Aug 2015 12:41

maybe i can use ES_OUT_GET_WAKE_UP ? please somebody help :)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests