[Live-devel] Current playing position in live555MediaServer
Aamer Sattar
aamer.786pk at gmail.com
Thu Aug 4 03:28:13 PDT 2011
Hi,
I am working on "live555MediaServer" class. Now to make our own Media
Server, we can reuse
MPEG1or2DemuxedServerMediaSubsession<http://www.live555.com/liveMedia/doxygen/html/classMPEG1or2DemuxedServerMediaSubsession.html>which
is subclass of
OnDemandServerMediaSubsession<http://www.live555.com/liveMedia/doxygen/html/classOnDemandServerMediaSubsession.html>
.
Now my question is that, by using the function
float MPEG1or2DemuxedServerMediaSubsession::duration
<http://www.live555.com/liveMedia/doxygen/html/classMPEG1or2DemuxedServerMediaSubsession.html#9f60b4fb7800c8dc305c189a76d6bf7b>()
const {
return fOurDemux
<http://www.live555.com/liveMedia/doxygen/html/classMPEG1or2DemuxedServerMediaSubsession.html#f449f9ef53213ced4475cea3c788eba7>.fileDuration
<http://www.live555.com/liveMedia/doxygen/html/classMPEG1or2FileServerDemux.html#46bcdf975eb50ef595c814d7d5617b1a>();
}
This will give us the file duration in seconds and milliseconds of any
media file. How can we get the current
playing (seeking) position when we are streaming any media file (e.g.
mpg) by using live555MediaServer program
inside MPEG1or2DemuxedServerMediaSubsession
<http://www.live555.com/liveMedia/doxygen/html/classMPEG1or2DemuxedServerMediaSubsession.html>
subclass.
Regards,
AAMER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110804/1e8bde60/attachment.html>
More information about the live-devel
mailing list