Page 1 of 1

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

Posted: 23 Aug 2015 10:16
by xcdix666
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.

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

Posted: 23 Aug 2015 10:24
by xcdix666
Now i am using es_out_Control(out, ES_OUT_GET_EMPTY, &es_empty) solution. But it is veeeeeeryy hacky. And buggy.

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

Posted: 23 Aug 2015 12:41
by xcdix666
maybe i can use ES_OUT_GET_WAKE_UP ? please somebody help :)