<font><font face="comic sans ms,sans-serif"><b><div style="min-height:100%;font-family:Times;font-weight:normal;font-size:medium"><div class="nH" style="width:1024px"><div class="nH" style><div class="nH"><div class="no"><div class="nH nn" style="min-height:1px;width:848px">

<div class="nH"><div class="nH"><div class="ar4 z"><div class="AO" style><div id=":rp" class="Tm aeJ" style="background-image:none;background-color:initial;overflow-y:scroll;padding-right:0px;height:428px;background-repeat:initial initial">

<div id=":rr" class="aeF" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;vertical-align:bottom;min-height:14px"><div class="nH"><div class="nH"><div class="nH g id"><font class="Apple-style-span" color="#222222">Hello Sir</font></div>

<div class="nH g id" style="color:rgb(34,34,34)"><br></div><div class="nH g id" style="color:rgb(34,34,34)">U are right if write videoSink->octetCount inside the after playing function we get a non zero value,as after playing function is called after the streaming has completed but then how can we print the bit/byte rate during streaming the file.</div>

<div class="nH g id" style="color:rgb(34,34,34)">Please help to find the bit rate when the file is actual streaming not after the streaming is done.   </div><div class="nH g id" style="color:rgb(34,34,34)"><br><table class="Bs nH iY" cellpadding="0" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-collapse:collapse;width:832px">

<tbody><tr><td class="Bu" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif;vertical-align:top;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-image:initial;background-color:rgb(255,255,255);background-repeat:initial initial">

<div class="nH if" style="padding-top:0px;padding-right:0px;padding-bottom:1px;padding-left:0px;margin-top:3px;margin-bottom:8px;margin-left:8px;margin-right:16px"><div class="nH"><div class="nH hx" style="color:rgb(34,34,34);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:transparent">

<div class="nH"><div class="h7 hn " style="clear:both;padding-bottom:0px"><div class="Bk" style="margin-bottom:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:initial;border-bottom-style:initial;border-left-style:initial;border-top-color:rgb(239,239,239);border-right-color:initial;border-left-color:initial;border-bottom-color:initial;border-top-width:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;width:579px">

<div class="G3 G2" style="padding-top:0px;background-color:transparent;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-right-style:initial;border-bottom-style:initial;border-left-style:initial;border-right-color:initial;border-bottom-color:rgb(216,216,216);border-left-color:initial;border-top-width:1px;border-top-style:solid;border-top-color:rgb(216,216,216);border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">

<div><div id=":4u"><div class="adn ads" style="padding-bottom:20px;border-left-width:1px;border-left-style:solid;border-left-color:transparent;padding-left:8px"><div class="gs" style="margin-left:44px"><div id=":t3" class="ii gt adP adO" style="font-size:13px;margin-top:5px;margin-right:15px;margin-bottom:0px;margin-left:0px;padding-bottom:5px">

<div id=":sz"><div style="word-wrap:break-word"><div><div class="im" style="color:rgb(80,0,80)"><blockquote type="cite"><font><b style="font-family:'comic sans ms',sans-serif;font-size:small"><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div style="font-weight:normal">

i try'ed calculating the bit/byte rate using the method mentioned below´ as</div><div><br></div><div><div>int o1=videoSink->octetCount();</div><div><span style="white-space:pre-wrap">  </span></div><div><span style="white-space:pre-wrap"> </span>videoSink->startPlaying(*videoSource, afterPlaying, videoSink);</div>

</div></span></b><font color="#222222" face="arial, sans-serif"><b><br></b></font></font><span style="font-family:'comic sans ms',sans-serif"><b><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div style="display:inline!important">

<div style="display:inline!important">int o2=videoSink->octetCount();</div></div></span></b></span><div><font color="#222222" face="arial, sans-serif"><span style="border-collapse:collapse"><b><br></b></span></font></div>

<div><font color="#222222" face="arial, sans-serif"><span style="border-collapse:collapse"><b>At both times the value of o1 and o2 are zero.</b></span></font></div></blockquote><div><br></div></div>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.</div>

<div><br></div><div>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.</div><div><br>

</div><span class="HOEnZb"></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div>

</div></div></b></font></font>