On 12/13/06, Olympus Mons <[EMAIL PROTECTED]> wrote:

On 12/12/06, Alex Zimin <[EMAIL PROTECTED]> wrote:
>
> Not sure if it is possible to do it dynamically.
>
> Please look into these functions:
> Camera.setQuality()
> http://livedocs.macromedia.com/fms/2/docs/00000548.html
> and
> Camera.setMode()
> http://livedocs.macromedia.com/fms/2/docs/00000546.html
>

As far as i know those settings cannot be changed  once  the stream is
published  and they  affect the outgoing stream (the local captured camera).



Yeah, I used that and it works great. It can be changed after it's published
(even added a scrollbar to set quality and it works like hell; resolution
changes cause my camera to reset, so there's some lag with that, but
Camera.quality works seamlessly). The problem is this is client side. The
client-broadcaster makes changes to his upgoing stream. Now this is ok if
that's what I need (slow broadcaster, data has to be compacted some more).
My problem are slow receivers. I need some way to tell the broadcaster "Hey,
your receiver is kind of slow, stop flooding him!".


What you can do from client side is a call to NetStream.receiveVideo(true,
fps) where fps are the frames per second you want to receive from that
particular stream. I've posted an issue about receiveVideo(false) earlier
today so i'm not sure if this will work properly, but it's documented on
macromedia docs.


Hmmm... yeah, that sounds ok. I mean, changing resolution is questionable,
compression should probably not be the servers problem, but fps is ok.. Hm
hm. Ok, that I will try :) Does this affect the broadcaster? Or server just
throws away few frames from time to time for every client individually?

Other thing i haven't tested by myself but that is on red5 API is the
IBandwidthConfigure (or something like that, i'm writting out of my head),
perhaps you may want to have a look at that (suposedly it controls bandwidth
used by streams for each connection, from server-side).

Luck, and let me know what you get ;)


I will do that :)

Btw, there is SimpleBandwidthConfigure in Red5. Is that it? In any case,
there's setOverallBandwidth() in it. What I was wondering is does this
affect overall bandwidth of the current application or the server as a
whole?


Olympus Mons
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to