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

David R. Robison david.robison at openroadsconsulting.com
Thu Aug 7 21:55:55 CEST 2014


I also noticed that there is no way from the libvlc media player 
interface to set an end time or to specify a play length. I need to be 
able to request playing a limited section of recorded video (15 or 30s 
worth) by specifying the start/stop time in unix seconds. I can use the 
set_time to set the start time, but I have no way to 1) specify an end 
time and 2) let the live555 module know to send a "range: clock" header 
rather than a "range: npt" header. I was thinking of having a 
set_time_zero call that would set the absolute date/time representing 
the player's zero time. In essence this would be the absolute date/time 
of the presentation start. If time_zero was greater than 0, then I would 
use the sendPlayCommand sending the "range: clock" rather than "range: 
npt". However, I would need another function in libvlc_media_player to 
set the stop time. I'm still unsure as to what is the best way to 
approach this. Thoughts?
David

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: david.robison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

On 8/6/2014 9:58 AM, David R. Robison wrote:
> OK, but how do I force that through to the input and live555 modules?
> When setting the time (if I understand it correctly) it sets the input
> variable and uses the variable change callback to let the input module
> know which in turn sends it to the demux module. I need this value in
> the live555 module so I know which sendPlayCommand to send (the npt or
> the clock version). Also, I will want to change this for each media item
> anyway. For example, whenever I switch to playing a new recorded video
> stream I will want to set the time_base to the starting point of the
> recorded video. Once I get the DEMUX_SET_TIME_BASE I will save that
> variable in my demux structure so I have it for further reference while
> the media is playing. Am I missing something here?
> David
>
> David R Robison
> Open Roads Consulting, Inc.
> 103 Watson Road, Chesapeake, VA 23320
> phone: (757) 546-3401
> e-mail: david.robison at openroadsconsulting.com
> web: http://openroadsconsulting.com
> blog: http://therobe.blogspot.com
> book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
>
> On 8/6/2014 9:51 AM, Rémi Denis-Courmont wrote:
>> Le 2014-08-06 16:45, David R. Robison a écrit :
>>> OK, so what if I create a new media_player function called
>>> libvlc_media_player_set_time_base and create an input variable called
>>> "time-base".
>> It should be a media player variable, not an input variable.
>> Otherwise, it will be lost everytime the media item changes.
>>
>
>
> This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
> If you are not the intended recipient, please delete this email immediately.
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.




More information about the vlc-devel mailing list