Hi Richard,
These methods are virtual methods, and ImageStream is a base class...
that implementations subclass from, so the fact a header doesn't
implement something doesn't say anything about the actual
implementations that are meant to implement it.
Secondly the getReferenceTime() and TimeMultiplier are an time offset
and multiple, that is used by the ImageStream implementations to
compute the current time, and not the current time of the movie.
The actual time of the movie is something that would have to added to
ImageStream and its implementations, it should be possible to do this,
something like a getMovieTime().
Robert.
On Fri, Sep 19, 2008 at 6:52 AM, Richard Baron Penman
<[EMAIL PROTECTED]> wrote:
> hello,
>
> I would like to display what percentage of a video has been played. I'm
> using the ImageStream class and I thought getReferenceTime() or
> getTimeMultiplier() might help me, but they always return 0.
>
> Examining the header file I found this:
> 72 virtual double getLength() const { return 0.0; }
> 73
> 74 virtual void setReferenceTime(double) {}
> 75 virtual double getReferenceTime() const { return 0.0; }
> 76
> 77 virtual void setTimeMultiplier(double) {}
> 78 virtual double getTimeMultiplier() const { return 0.0; }
>
> So it seems this functionality is not ready yet. Does anyone have an
> alternative way to determine the current playing video frame?
>
> regards,
> Richard
>
>
> _______________________________________________
> 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