header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
nicky
Points:0
Posts:0

9/27/2010 12:16:19 AM

Title: red5 video and audio streaming


hi,
i have one to one video audio chat application dev in red5 and flex3, the video and audio streaming for 1 minute and getting stopped...text chat is working fine. bfore working on text i wrote code for video and audio. then it worked perfect.
wat may b the problem??
thanks in advance



1
action2n3
Points: 200
Posts:0
9/27/2010 4:10:49 AM



please check how much bandwidth it is taking and also check net status events for Net connection and net stream(if using new stream). Check weather your connection status is connected or disconnected.

thanks

2
Phillipe
Points: 0
Posts:0
9/27/2010 9:37:22 AM



if your chat keeps working this means that your netconnection is active. The reason of dropping stream could be very low bandwidth, low disk space on the server, or you might be stopping steam accidentally in the code . Is it exactly 1 min or some random value.

3
nicky
Points: 0
Posts:0
9/28/2010 3:20:31 AM



hi,
i m using the following settings for camera.
camera.setQuality(15000, 0 );
camera.setMode(192,144,10, false );
camera.setLoopback( false );
ns.attachCamera( camera );

its not random , its stopping for around 1min 15 secs or so. the only thing im using 2 shared objs. one for video audio streaming and other for text msgs. im not getting any errors also in the log file.any other suggestions.
thanku.

4
Troy
Points: 820
Posts:0
9/28/2010 10:43:13 AM



your code and settings are fine . It seems you have some problem on the server side . Where is your server located ? Are you hosting the FMS server yourself or using some third party server. If you are using some service provider for FMS then you should check with them. The account may be limited time and bandwidth for audio/video.

Audio/Video is published using NetStream object and not shared object. Shared objects are only used for data .

5
nicky
Points: 0
Posts:0
9/29/2010 12:50:42 AM



hi,
In the sharedobject im just passing the username bassed on tht im publishing and playing the video. in the above code ns is netstream object. i m using red5 server not FMS. chk the below URL, im also facing same problem and im getting same error.
in log file its not giving any errors when video is stopped. im unable to find wat may be the error. the demo file is running smoothly.
http://groups.google.com/group/red5interest/browse_thread/thread/a7f8800e8dda0bc0/66a2a8917eacf99a?lnk=gst&q=%22Consumer+disconnect%22+after+some+time+while+reading+live+streaming#66a2a8917eacf99a


6
Marx
Points: 0
Posts:0
9/29/2010 1:09:53 AM



I have read some where a similar problem , and the solution was installing the old version Red5 0.8.0 Final. You may also try the same

7
nicky
Points: 0
Posts:0
9/29/2010 6:45:42 AM



hi,
im actually runnning this on both air application and web appln , tht means one client will be on air and other client is in web. so chatting will take place between these 2. can this be the reason? im getting netStream.Play.UnpublishNotify error after 1minute.so how can i handle it.

8
bob_senior
Points: 1320
Posts:0
9/30/2010 10:12:14 AM



your problem does not seems like a regular problem. This is a normal scenario and I am sure that there is no such technical issue. UnPublish Notify event is triggered when the broadcaster stops streaming video. First verify that is the broadcaster causing the problem or the client is having problem in receiving. To verify this store your stream on the server and check the size of flv keeps increasing after video is stopped on viewer side. If it keeps on increasing this means the broadcasting client is sending the video. but the client is not able to receive.

Also remember that if you don't have sufficient upload bandwidth the video stream publishing will stop and fire the unpublish event. Same with the download side also. So it would be better to check the application with server installed on LAN or local system.

Another suggestion would be to delete the old red5 installation directory including samples and reinstall RED5 but do not install any samples. Installing samples caused a similar issue with somebody.

9
Ankush
Points: 240
Posts:0
10/4/2010 3:16:34 AM



Hey nicky, try this :

cam.setQuality(0, 80);

(NOT -- > camera.setQuality(15000, 0 ))

10
nicky
Points: 0
Posts:0
10/4/2010 5:26:40 AM



hi ankush,
the problem is not with quality, video is playing for only 1 minute and freezes in air application and in web application its streaming for 10mins.

11
Shawn
Points: 680
Posts:0
10/4/2010 5:36:41 AM



nicky this is quite unusual problem, I believe its problem specific to your system , server or network. you can try disabling any firewall and anti-virus software's you are using. Update latest flash player.

I have my red5 server running and can test your application if you can upload your sample application to some file sharing website and share the URL.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions