-
-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Red5.getConnectionLocal returns wrong connection #39
Comments
This appears to be fixed and will be available by updating to the latest red5-server and red5-server-common jars. Here is the log from the issue39 app:
Three tabs opened and connected 0,1,2; they are then closed in this order: 1,0,2 |
Issues app: https://github.com/Red5/red5-issues |
Commits |
If you'd like to help validate that this is resolved, you may test with the latest mvn repo builds. |
I give you the scenario:
I have two connections ( clientId: 0 and clientId: 1 ), both are streaming audio and video.
I'm handling the streamBroadcastClose event to know when one of them stop broadcasting and remove the stream from my app and notify all connected users.
The strange thing is when I close the window of the clientId 1, the Red5.getConnectionLocal() method inside the event streamBroadcastClose returns the connection of the client id 0. I've checked the scope connections and both still there, so I don't know why I get the connection from the other client.
After that, if I close the client id 0 window, the Red5.getConnectionLocal() method returns the right connection, the connection of the client id 0.
I've made a video so you can watch how to reproduce or how can I reproduce this error.
Here's the link: https://dl.dropboxusercontent.com/u/4155232/Red5-geconntectionlocal.mp4
The test I've made was running the Red5 1.0.4 snapshot on a Windows 7 VM.
The clients ran outside the VM on Chrome ( 39.0.2171.71 m ) on Windows 8. My flash player version is 15.0.0.239
I've made this test on Firefox and IE too. And also I've ran opening one client on each browser, inside and outside the VM. Always, the same result.
This is the GIT link of the project I'm testing with: https://github.com/hnobile/myoflademo.git
This is a simple app built in flex to test audio and video streaming.
In the client side you need to select a streamName and then connect to the server.
Once you are connected, you can see the connection client id assigned by the Red5.
The text was updated successfully, but these errors were encountered: