Hi,

Thanks for the info.
That works for the ffmpeg plugin but wasn't implemented at all in the direct 
show function.
I have posted a submission which adds a new function ( getCurrentTime ) to 
ImageStream and have implemented the new methon in the direct show plugin, and 
implemented it in ffmpeg by simply calling getReferenceTime.

I took this approach as I am not sure what the 'correct' meaning of 
getReferenceTime is as there is also a setReferenceTime as well as a seek 
function.

Cheers,

Brad

From: [email protected] 
[mailto:[email protected]] On Behalf Of Julen Garcia
Sent: Tuesday, 27 September 2011 4:51 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Current time when displaying an image stream

Hi Brad,

I have also a simple video player using the ImageStream class and the FFmpeg 
plugin. For the slider, I get the maximum value from the 
ImageStream->getLenght() method and to update the current position I call 
periodically ImageStream->getReferenceTime(). I think that this is the 
'curentTime' function you are looking for.

If you need any help, just let me know ;)

Cheers,
Julen.

2011/9/23 Christiansen, Brad 
<[email protected]<mailto:[email protected]>>
Hi,

I am creating a basic video player using the ImageStream class. I have created 
a standard 'position' slider to seek within the stream. Seeking is working with 
no problems but I cant see any way of reliabily updating the position of the 
slider as the stream is played.

As well as the seek() and length() function I was hoping to find a 'curentTime' 
like function, basically the 'getter' for 'seek'. Without this function it 
looks like I will have to assume that length and seek are both in seconds and 
then calculate my own 'currentTime' based on elapsed time since play was 
called. This seems overly complex and somewhat unreliable as it also assumes 
that the stream is playing with exactly the correct timing.

Has anyone solved this? Have I missed something?

Cheers,
Brad
------------------------------------------------------------------------- 
DISCLAIMER: This e-mail transmission and any documents, files and previous 
e-mail messages attached to it are private and confidential. They may contain 
proprietary or copyright material or information that is subject to legal 
professional privilege. They are for the use of the intended recipient only. 
Any unauthorised viewing, use, disclosure, copying, alteration, storage or 
distribution of, or reliance on, this message is strictly prohibited. No part 
may be reproduced, adapted or transmitted without the written permission of the 
owner. If you have received this transmission in error, or are not an 
authorised recipient, please immediately notify the sender by return email, 
delete this message and all copies from your e-mail system, and destroy any 
printed copies. Receipt by anyone other than the intended recipient should not 
be deemed a waiver of any privilege or protection. Thales Australia does not 
warrant or represent that this e-mail or any documents, files and previous 
e-mail messages attached are error or virus free. 
-------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



-------------------------------------------------------------------------
DISCLAIMER: This e-mail transmission and any documents, files and 
previous e-mail messages attached to it are private and confidential.  
They may contain proprietary or copyright material or information that 
is subject to legal professional privilege.  They are for the use of 
the intended recipient only.  Any unauthorised viewing, use, disclosure, 
copying, alteration, storage or distribution of, or reliance on, this 
message is strictly prohibited.  No part may be reproduced, adapted or 
transmitted without the written permission of the owner.  If you have 
received this transmission in error, or are not an authorised recipient, 
please immediately notify the sender by return email, delete this 
message and all copies from your e-mail system, and destroy any printed 
copies.  Receipt by anyone other than the intended recipient should not 
be deemed a waiver of any privilege or protection.  Thales Australia 
does not warrant or represent that this e-mail or any documents, files 
and previous e-mail messages attached are error or virus free.  

-------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to