Check if playback is behind live stream

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
jcvamp
Blank Cone
Blank Cone
Posts: 60
Joined: 27 May 2009 00:58

Check if playback is behind live stream

Postby jcvamp » 31 Dec 2015 05:22

Hi.

I'm using VB.net to make a program that plays live streams. I've found that it's possible to pause the video, and also change the playback speed, meaning that you can catch back up with the live stream. However, as input.position and input.time return 0, I don't know how to check when the playback has caught back up to the live stream.

Any ideas?

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Check if playback is behind live stream

Postby da2424 » 31 Dec 2015 14:47

vlc.input.time also returns 0?
Which version of VLC do you use?
In the most of cases, vlc.input.time should return a relative time.

jcvamp
Blank Cone
Blank Cone
Posts: 60
Joined: 27 May 2009 00:58

Re: Check if playback is behind live stream

Postby jcvamp » 12 Jan 2016 20:08

vlc.input.time also returns 0?
Yup.
Which version of VLC do you use?
2.2.1

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Check if playback is behind live stream

Postby da2424 » 12 Jan 2016 22:00

If vlc.input.time also returns 0, you will not really have a chance to get the current position.
You could try vlc version 2.2.2 or v3

jcvamp
Blank Cone
Blank Cone
Posts: 60
Joined: 27 May 2009 00:58

Re: Check if playback is behind live stream

Postby jcvamp » 14 Jan 2016 13:08

Where can I download those versions?

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Check if playback is behind live stream

Postby da2424 » 14 Jan 2016 14:12

These versions are available here:
http://nightlies.videolan.org/

jcvamp
Blank Cone
Blank Cone
Posts: 60
Joined: 27 May 2009 00:58

Re: Check if playback is behind live stream

Postby jcvamp » 15 Jan 2016 04:31

Thanks.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 24 guests