[vlc-devel] [PATCH 1/1] Supporting ONVIF PRofile-G recording playback

Rémi Denis-Courmont remi at remlab.net
Mon Aug 4 23:51:02 CEST 2014


Le lundi 4 août 2014, 15:15:40 David R. Robison a écrit :
> My thoughts was to use a single variable which I now call "timerng" (but
> I will change that) so that when I set the time range I get a single
> callback for the one variable. However, I can get around this if I
> create a time variable for "start-time" and one for "end-time". If I set
> the end-time first then I can detect that the start-time has not been
> set and not cause an extra PLAY request.

Again: why do you need to use object variables AT ALL? This still looks like 
cargo cult programming to me.

> I do think, however, that I need two new variables so I can determine if
> I am requesting recorded video or live video from the RTSP source. The
> difference is whether I send the "Range: npt" or the "Range: clock" header.
> I could create two variables for recorded_playback_start and
> recorded_playback_stop. Thoughts?

What is it you are concerned about? Selecting the time base, selecting the end 
time or both?

As per the previous thread, VLC can already deal with start-time and end-time, 
but internally only. (The live555 plugin cannot access the end-time currently, 
so it cannot put it in the PLAY request.)


-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list