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]>

> 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]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to