[Live-devel] Re: Re:Re: It seems that the it will use more and more memory?memory leaks? (Ross Finlayson)

Ross Finlayson finlayson at live.com
Wed Jun 23 22:51:36 PDT 2004


>I think  it's  diffult to determine play Time Per Frame?Is there any class
>of liveMedia can do this?

Yes.  If you're streaming MPEG Transport Streams, then you no longer need 
to set the "playTimePerFrame" parameter when creating your 
"ByteStreamFileSource".  Instead, omit that parameter, and feed the 
"ByteStreamFileSource" into a "MPEG2TransportStreamFramer" filter (which 
will compute an accurate duration) for each outgoing packet.

See the code for the "testMPEG2TransportStreamer" test program for an 
illustration of this.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list