> i try'ed calculating the bit/byte rate using the method mentioned below´ as
> 
> int o1=videoSink->octetCount();
>       
>       videoSink->startPlaying(*videoSource, afterPlaying, videoSink);
> 
> int o2=videoSink->octetCount();
> 
> At both times the value of o1 and o2 are zero.

That's because the call to "startPlaying()" merely sets up the objects to 
handle streaming.  The actual streaming (reception) doesn't happen until later, 
when you enter the event loop.

If you instead check "videoSink->octetCount()" inside the "afterPlaying()" 
function - i.e., after the streaming has completed, then you'll see a non-zero 
count.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to