On 8/30/06, Yidong Fang <[EMAIL PROTECTED]> wrote:
The speed of packet sending won't affect the speed of playing as long as you have set the timestamp correctly. The ts in FLV is absolute. I don't know if you have understood the relationship between ts and RTMP header. The 12-byte header uses absolute ts while all other headers use relative ts. Take this in mind and you will get the correct result. :-)
Hi,
I'm new to AMF and FLV and Flash.
I'm implementing a RMTP server in C++ (supports FLV streaming
only),and I've almost done everything include AMF parsing,client side
call receiving and server side responsing and FLV content
sending.Here's the flash client AS code:
//----code begin-----
trace("hello");
var my_nc:NetConnection=new NetConnection();
my_nc.> trace("Recording stream status.\n");
trace("Event: " + info.code + "\n");
trace("Type: " + info.level + "\n");
trace("Message:" + info.description + "\n");
};
my_nc.connect("rtmp://127.0.0.1:8800/test");
var my_ns:NetStream=new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("t1");
//----code end-----
My server listens on 8800,and everything is ok except one problem:
When my RMTP server sends FLV tags to the Flash Player (after
receiving the 'play' call), it play too fast and when I do a pause (
sleep for 10ms) it seems closer to the normal playing. What's the
problem? What's the timestamp of FLV tag for? Should I slow down the
speed of data transfering in the server side ?
The speed of packet sending won't affect the speed of playing as long as you have set the timestamp correctly. The ts in FLV is absolute. I don't know if you have understood the relationship between ts and RTMP header. The 12-byte header uses absolute ts while all other headers use relative ts. Take this in mind and you will get the correct result. :-)
Thanks.
--
JSON: Action in AJAX!
JSON - http://www.json.org
JSON.simple - http://www.json.org/java/simple.txt
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
Best Regards
Steven Gong
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
