Hey all!
Now I'm porting the instant messenger from FMS to Red5. Flash-clients work
fine with FMS (chat, audio, video), but there is a trouble with Red5 (0.6.3
).
Obvious live chat client-to-client with no SharedObjects.
I don't have too much skills in flash, thus excuse me for possible
inaccuracy in problem description.
I've extended ApplicationAdapter and have added there some methods,
described in interface IStreamAwareScopeHandler (override them),
to check if clients do something with broadcasted streams.
public void streamBroadcastStart(IBroadcastStream stream) {
log.debug("Starting stream:" + stream.getPublishedName());
}
public void streamBroadcastClose(IBroadcastStream stream) {
log.debug("Closing stream:" + stream.getPublishedName());
}
public void streamPublishStart(IBroadcastStream stream) {
log.debug("Starting the publishing of the stream:" +
stream.getPublishedName());
}
After this I've seen the following in the console (both clients are
pubilshed streams to exchange data):
Starting the publishing of the stream: user1_to_user2_stream
Starting stream:user1_to_user2_stream
StreamableFileFactory get services
Starting the publishing of the stream: user2_to_user1_stream
Starting stream:user2_to_user1_stream
StreamableFileFactory get services
And the stream names (in original) are corresponding to those which were set
by clients.
When I catch the application during debugging in any point of this
overriding methods and try to evaluate
getBroadcastStreamNames(scope)
I receive nothing. Just empty array with size 0. I've tried the global scope
as a parameter, which was created while application was starting, and
'current' scope, received from the localConnection.
The same. Does this mean that streams were not created or published ?
Then I switch on the webcam of second client (it has to attach video to...
to what? if no streams are present. hm....)
And see the console output again:
Closing stream: user2_to_user1_stream
Switching off webcam ( detach?) and see the following:
Starting the publishing of the stream: user2_to_user1_stream
Starting stream:user2_to_user1_stream
Quite strange, taking into account that FMS do this work sufficiently.
Though, text chat is working without problems, and audio streaming between
these two clients is realized.
Just video gives a headache and forces to check logs and debug, debug,
debug...
Is this somehow related to the earlier described problems with streaming in
the red5 0.6.3 version ?
Or maybe it could be solved in my own ?
Thanks in advance,
Alexander.
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org