Simon

I overrided this function
OnSetInitialBandwidth(H323VideoCodec * codec)
and called an api codec->setmaxbitrate(n * 1024) but this function is returning false.

and on OnRTPStatistics(.......................
I am calculating Video Rate as
VdRate = (session.GetOctetsReceived() * 1.024 * 8)/elapsedTime;

I still can not control bitrate.
Is there any change in plugins ?

Alam



On Thu, Jul 17, 2008 at 8:56 AM, Simon Horne <s.horne@packetizer.com> wrote:
Alam

Sorry for the delay in replying. yes there are some changes.
There is a new function.

void H323EndPoint::OnSetInitialBandwidth(H323VideoCodec * codec)

This is called before the OpenVideoChannel. This is where you can set the
codec MaxBitRate. This also allows you to correctly advertise bandwidth to
the remote party.

Simon



-----Original Message-----
From: h323plus-bounces@lists.packetizer.com
[mailto:h323plus-bounces@lists.packetizer.com]On Behalf Of mohammad alam
Sent: Monday, 14 July 2008 4:41 PM
To: H323plus
Subject: [h323plus] SetMaxBitRate Problem


Simon

I am using SetMaxBitRate in my code to control data flow in Network. I am
using
codec.SetMaxBitRate(1024 * x); in OpenVideoChannel(......................
Earlier when I  was using Openh323 it was functional.
Now I cant control codec BitRate through this API.
Do I have to make any changes in Plugins.??

Alam