Click here to ask Question NowIts free No registration required. Flash, Flex, Flash
Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
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
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.
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.
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.
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 .
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
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.
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.
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.
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.