源:http://comments.gmane.org/gmane.comp.multimedia.live555.devel/9151
Dear live dev team:
(1)
I have extended the live555 to support mp4 file.But when playing ,the vlc has no process bar and the total time's indicator(it's 00:00 at the lower right corner of vlc). I can't jump to another point to play in the vlc process bar area.what's the reason of this?
I have extended the live555 to support mp4 file.But when playing ,the vlc has no process bar and the total time's indicator(it's 00:00 at the lower right corner of vlc). I can't jump to another point to play in the vlc process bar area.what's the reason of this?
(2)
when playing,at the first 10 seconds there are many m
osaic on the picture. what can I do to fix this problem?
please help me.Thank you very much.
2012-09-10
kingaceck
Re: A Problem of streaming MP4 file
I have extended the live555 to support mp4 file.But when playing ,the vlc has no process bar and the total time's indicator(it's 00:00 at the lower right corner of vlc). I can't jump to another point to play in the vlc process bar area.what's the reason of this?
If you want to support 'seeking' within your file, you need to reimplement the following two virtual functions of your new "ServerMediaSubsession" subclass(es):
virtual float duration() const;
You'll need to redefine this to return the track's duration in seconds (i.e., some value > 0.0)
virtual void seekStream(unsigned clientSessionId, void* streamToken, double& seekNPT, double streamDuration, u_int64_t& numBytes);
This is the function that will do the seeking.
(2)when playing,at the first 10 seconds there are many m osaic on the picture. what can I do to fix this problem?
A correction: The virtual function to redefine here (assuming that you've defined your own subclass of "OnDemandServerMediaSubsession" is:
virtual void seekStreamSource(FramedSource* inputSource, double& seekNPT, double streamDuration, u_int64_t& numBytes);
This is the function that will do the seeking. Note that there are several existing examples in the code.