Hi all,
I've downloaded the latest JWPlayer and I've done a RSS Media playlist. In this playlist there is a MP4 movie with a duration property set at 7:
<media:content url="Mr_MrsSmith-h264_aac.mp4" duration="7" />
this duration fails because there is an offset of about 8-10 seconds.
I found this file from videolan test files:
http://streams.videolan.org/streams-videolan/mp4/Mr_MrsSmith-h264_aac.mp4
I had this "bug" also n a FLV video, but reading in forums I ve read about that it could be not encoded good because with your video.flv everything goes fine with duration. In fact opening with hexdump I've seen a little differ between that files, but now what about the MP4? Is it also encoded wrong?
The MP4 file Mr_MrsSmith-h264_aac.mp4 has a duration of 78seconds.
If you want to start somewhere into the file, you can use the flashvar start with the jwplayer namespace, provided that you have serverside support for streaming. If you want to only play to a certain point (44seconds in the example below), then set the duration to that time value. "duration" is more like "end" in this context.
<media:content url="Mr_MrsSmith-h264_aac.mp4" duration="44" /><jwplayer:start>10</jwplayer:start>
You can also specify duration as a flashvar, using the jwplayer namespace.
<media:content url="Mr_MrsSmith-h264_aac.mp4" /><jwplayer:start>10</jwplayer:start>
<jwplayer:duration>44</jwplayer:duration>