Re: [Red5] Fast client to all client publishing
hehe, sounds good because this would be a possible extension. Lets say something like a multicast group. You can add multiple clients to a group. You have something like a broadcaster and it ll broadcast to all clients with fast performance. Lets say like a stream but with data. cu nomIad Steven Gong schrieb: IIUC the RSO seems to be the only official way to make a broadcast call across the clients. Correct me if I am wrong. On 8/14/07, *nomIad* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, Is there a better way to broadcast the SAME data to multiple clients. A fast way is the shared object. I want to use the NetConnection for calls. So the utility server side ist the ServiceUtil witch can invoke on multiple clients. So is this the fastest way or ist there something faster when using no shared objects? cu nomIad ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- Best Regards Steven Gong Intel Asia-Pacific RD SSG BIOS Engineer No. 880, Zi Xing Road, Shanghai, China Work Phone: +86-021-61166787 Work Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] InfraRed5 Red5 Consultant: http://www.infrared5.com, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Red5 Developer: http://osflash.org/red5, http://jira.red5.org/confluence/display/~steven/Home http://jira.red5.org/confluence/display/%7Esteven/Home Modesty is an overrated quality in men of no great accomplishment. -- Ricky Jay ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Don't catch people having a bad day
Hi, Red5 has been as dead as a duck for ages. It was crap at 0.6 rc1 (30th November 2006) - full of bugs, slow as crap as well. F***, thats really heavy. Bad, bad bad. Yes red5 has some bugs, but, their all fixed really fast. The spring framework offers great possibilitys and its very easy to integrate and work with. I think red5 is till now not the best VOD server but ive no problems at all with RTMP. Works quite fast, and im looking forward to integrate it in some interesting projects. The open code base offers the possibilty to understand the behaviors of red5. Ive developed some FMS apps, but they were never as big or flexible as the ones im developing on Red5. Hey, guys, your doing really a great job. I think the limit of red5 is not reached so for now, it meet my needs. Never the less, i will take a look on wowza just for my opinion. cu nomIad Dominick Accattato schrieb: http://www.flashcomguru.com/index.cfm/2007/1/11/Wowza-Media-Server-Public-Beta -- Dominick Accattato, CTO Infrared5 Inc. www.newviewnetworks.com http://www.newviewnetworks.com ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Docs On Red5
There is also a Wiki for red5. wiki.red5.org Here are some samples and links. cu nomIad Vitaly Babiy schrieb: Hello Every one, Where can I find good documentation on this project, like a book, or tutorials? Thanks, Vitaly Babiy ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Unique Client IDs PROBLEM
Yes, it was OK before. Ive checked some source code, but ive nothing found. An InstanceAlreadyExists Exception raises when there are 2 MBeans are created with the SAME ID. mfg nomIad Steven Gong schrieb: Was it ok before? On 7/19/07, *nomIad* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, Have probs with the latest Trunk. The the pervios productive trunk was before Ivy implementation. K now im not sure but it can be the problem. My application use a custom client registry. If a client connects with a parameter i set his NAME as the CLIENT ID in the client registry. If a client with the same name and authentication connects the SAME client is returned. 2 month it was no problem. BUT since the jmx intrudution the JMX throws an error that the instance of a connection already exists. K i ignored that because it worked. BUT NOW strange things happens. Messages from Shared objects are pumped on the same client but different OBJECTS, different Scopes. Is it maybe because an user can have more than one connection to a scope? Structure: connection to chat connection to chat/room1 connection to chat/roomx for each connection a seperate Netconnection BUT finally grouped on the server to ONE Client Object. COULD this be a problem, was there something changed? mfg nomIad ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Unique Client IDs PROBLEM
YEEEHAAA Ive found the problem, just for documentation. symptoms: Everything works fine, but the shared objects got REALLY WIERED. Some messages start to spread over several Shared Objects in the SAME App. cause: Ive tested the Terracota POC and forget it to uninstall. Teracotta POC modified the Shared Object itself in the source. solution: Delete the Terracota POC, compile new from Trunk and everything works fine. Creapy, and i thought something really important has changed. Hope this could help people saving hours work *g*. nomIad schrieb: Yes, it was OK before. Ive checked some source code, but ive nothing found. An InstanceAlreadyExists Exception raises when there are 2 MBeans are created with the SAME ID. mfg nomIad Steven Gong schrieb: Was it ok before? On 7/19/07, *nomIad* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, Have probs with the latest Trunk. The the pervios productive trunk was before Ivy implementation. K now im not sure but it can be the problem. My application use a custom client registry. If a client connects with a parameter i set his NAME as the CLIENT ID in the client registry. If a client with the same name and authentication connects the SAME client is returned. 2 month it was no problem. BUT since the jmx intrudution the JMX throws an error that the instance of a connection already exists. K i ignored that because it worked. BUT NOW strange things happens. Messages from Shared objects are pumped on the same client but different OBJECTS, different Scopes. Is it maybe because an user can have more than one connection to a scope? Structure: connection to chat connection to chat/room1 connection to chat/roomx for each connection a seperate Netconnection BUT finally grouped on the server to ONE Client Object. COULD this be a problem, was there something changed? mfg nomIad ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Unique Client IDs PROBLEM
Hi guys, Have probs with the latest Trunk. The the pervios productive trunk was before Ivy implementation. K now im not sure but it can be the problem. My application use a custom client registry. If a client connects with a parameter i set his NAME as the CLIENT ID in the client registry. If a client with the same name and authentication connects the SAME client is returned. 2 month it was no problem. BUT since the jmx intrudution the JMX throws an error that the instance of a connection already exists. K i ignored that because it worked. BUT NOW strange things happens. Messages from Shared objects are pumped on the same client but different OBJECTS, different Scopes. Is it maybe because an user can have more than one connection to a scope? Structure: connection to chat connection to chat/room1 connection to chat/roomx for each connection a seperate Netconnection BUT finally grouped on the server to ONE Client Object. COULD this be a problem, was there something changed? mfg nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Red5 + Terracotta
Hi Orion, Fantastic work. You probably saved me some dirty hours. Ive seen that you uploaded that tutorial to the public terracota wiki. Maybe you could put it also in the red5 wiki? http://jira.red5.org/confluence/dashboard.action Its also confluence. cu nomIad Orion Letizi schrieb: Ok... I've put together a wiki page that describes how to run the clustered Red5 POC: http://wiki.terracotta.org/confluence/display/wiki/Red5+and+Terracotta+POC Go ahead and give it a shot... --Orion Lenny Sorey-2 wrote: Cool!!! Ah, Been waiting on a report like this. Cool!!! Regards, Lenny On 6/30/07, sharrissf [EMAIL PROTECTED] wrote: I saw it and it's really cool. They got it working in an afternoon. Of course their are many miles to go but as a poc, it actually works! We are very excited to work with the community to make this something people can use in their production apps. Cheers, Steve Steven Gong wrote: On 6/30/07, Orion Letizi [EMAIL PROTECTED] wrote: We got it working about an hour ago. We got the ball control demo to work so that two flash clients connected to two different red5 servers work together as if they were connected to the same red5 server. It's pretty hot. H~~~ That's really cool! :-) I'll post instructions on how to do it soon. Can't wait to see that happening. Cheers, --Orion Sent from my handheld -Original Message- From: Steven Gong [EMAIL PROTECTED] Date: Sat, 30 Jun 2007 09:20:15 To:Red5@osflash.org Subject: Re: [Red5] Red5 + Terracotta Orion, Just read your blog. Can you tell me a bit more detail about your idea on creating a parallel data structure? On 6/30/07, Orion Letizi ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- View this message in context: http://www.nabble.com/Red5-%2B-Terracotta-tf4002418.html#a11376411 Sent from the Red5 - English mailing list archive at Nabble.com. ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] LiveEvent tomorrow
Hi guys, Looks like spam but it isnt, just an information for you. We are doing tomorrow our next liveevent. A DJ mixes house music live at ppmcity. The Server is powerd by Red5. Awesome sound and a small video of doing the live mixes. The users keep connected with a chat to the DJ. If your intressted in what red5 do in production you can take a look at. www.ppmcity.com. Its a pitty that we have only a german version of this portal. Its free for you to join. If youre interrested tomorrow 20:00 GMT+001 Switzerland. cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] sound streaming not good
Hi, We provide a audio live streaming service. The audioquallity is very good, 44khz. The clients hear the stream with non recogniceable loose of quality. Settings are: var mic:Microphone=Microphone.get(); mic.setRate(44); mic.setUseEchoSuppression(false); Needs a perfect adjustment for the mic. Stream is about 6 kb / second. But its really high quality for a streaming. cu nomIad Storm schrieb: dAudio quality will deppend on the rate settings applied to it before you attach it to the NetStream. On 6/28/07, *Michael Chan* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, Can any one suggest me how to improve the audio streaming side, I am using Dazzle DVC90 USB, but the Red5 does not support such device in the audio side, so I use realtech intergrated sound card for line-in audio, however it sound good from local machine, but once on line, the sound quality dropped in such poor condition but I am not sure if this bad sound is the result from using red5, or if this will improve if PCI sound card installed. MC ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- --- If a man speaks in a forest and his wife is not there, is he still wrong? ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Startup JMX problem
Ok guys, I dont know why but the JMX registry take 60 seconds to startup. I use the same settings as before and have the actual trunk. Ok, currently i dont need the jmx, can i deactivate this startup blocker? cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Startup JMX problem
yeeehaa, thanks and dont take startup blocker to personal. The startup time is now reduced to awesome 6 seconds ;-) cu nomIad Mondain schrieb: Try setting the startRegistry and enableRmiAdapter options on the jmxAgent bean to false in the red5-common.xml. This will effectively disable most of the jmx system, it cannot currently be completely disabled. As for the startup blocker comment.. thanks :) Paul On 6/20/07, *nomIad* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ok guys, I dont know why but the JMX registry take 60 seconds to startup. I use the same settings as before and have the actual trunk. Ok, currently i dont need the jmx, can i deactivate this startup blocker? cu nomIad ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- It is difficult to free fools from the chains they revere. - Voltaire ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] making a mysql query from red5/server/adapter/ApplicationAdapter.java
Hi, Its a way to do a query. But we work in spring. So a better way would be to integrate it directly and work with a jdbctemplate. Ive written a tutorial for db access using spring. It saves you a lot of time and it increases performance dramatically. http://jira.red5.org/confluence/display/docs/Red5+and+Spring+JDBC cu nomIad David Engelmaier schrieb: Hello Mauricio, on top of what Alexey wrote you should also consider some kind of server side validation of the data you are getting from the client, the way you do it now is like praying for sql injection attack. David Alexey wrote: Hello mauricio, Monday, June 18, 2007, 11:19:35 AM, you wrote: i need to make an insert into a mysql db from my application i modified the ApplicationAdapter class added this code: public boolean insert(String a, String b){ Connection conn1 = null; try{ String userName =; String password = ; String url = jdbc:mysql://172.22.1.4:3306/; Class.forName (com.mysql.jdbc.Driver).newInstance(); conn1 = DriverManager.getConnection (url, userName, password); //System.out.println (Database connection established); } catch (Exception e){ System.err.println (Cannot connect to database server); } finally{ try{ if (conn1 != null){ Statement statement = conn1.createStatement(); statement.executeUpdate(INSERT INTO user_webcam + VALUES (a, b)); // conn1.close(); } } catch (Exception e) { // ignore close error } } return true; } and calling the method from client side with nc.call(insert, nc, value a, value b); the method returns true to the client, but the mysql query does not execute. a similar mysql insert code running standalone worked ok thanks a lot mauricio First, you obviously swallow the Exception. Replace your // ignore close error with logging - and you'll probably see a lot of interesting things ;) -- Best regards, Alexeymailto:[EMAIL PROTECTED] ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- David Engelmaier Software development consultant http://www.ixperience.net ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] acegi support in red5
hey Dan, Thats quite cool. Maybe you should post it on the wiki als further reference to my tutorial. mfg nomiad Dan Rossi schrieb: Finally got somewhere, this example authenticates a scripted AMF client using the simple login file. Need to work out now how to return temporary session hashes from acegi to reauthenticate after via the flash client which checks the session is valid. Requires including the spring dao jar file which the example doesnt explain. import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.math.BigInteger; import java.util.HashMap; import org.acegisecurity.providers.UsernamePasswordAuthenticationToken; import org.acegisecurity.providers.ProviderManager; import org.acegisecurity.BadCredentialsException; import org.red5.server.api.IScope; import org.red5.server.api.Red5; public class TokenService { private String saltKey = thesaltpass; private String hashword; private String newhash; public Object getToken(Object[] token) { final HashMap m=(HashMap)token[0]; UsernamePasswordAuthenticationToken t=new UsernamePasswordAuthenticationToken(m.get(username),m.get(password)); IScope connectionScope = Red5.getConnectionLocal().getScope(); ProviderManager mgr=(ProviderManager)connectionScope.getContext().getBean(authenticationManager); try { t=(UsernamePasswordAuthenticationToken)mgr.authenticate(t); } catch(BadCredentialsException ex) { return Wrong login information; } if (t.isAuthenticated()) { return t.hashCode(); } return ; } /* public String getMessageDigest(String token) throws NoSuchAlgorithmException { try { MessageDigest md = MessageDigest.getInstance(MD5); md.update(token.getBytes()); BigInteger hash = new BigInteger(1, md.digest()); hashword = hash.toString(16); } catch (NoSuchAlgorithmException e) { } return hashword; } */ } ?php include 'SabreAMF/SSLClient.php'; $client = new SabreAMF_SSLClient('http://localhost:5080/feedVOD/gateway'); // $client-setSSLCert(/www/dev/red5server.cer); $data = array('username'='admin','password'='secretpassword','clientID'='553','client_host'=$_SERVER[SERVER_NAME].$_SERVER['REQUEST_URI']); $result = $client-sendRequest('feedService.getToken',array($data)); var_dump($result); ? Dan Rossi wrote: Will get back to the spring soap stuff later this is kinda the idea to authenticate the page and the client ?php include 'SabreAMF/Client.php'; $client = new SabreAMF_Client('https://localhost:5080/myapp/gateway'); $data = array('username'='username','password'='2325e','clientID'='553','client_host'=$_SERVER[SERVER_NAME].$_SERVER['REQUEST_URI']); $result = $client-sendRequest('myService.getToken',array($data)); var_dump($result); ? public Object getToken(Object[] token) { final HashMap m = (HashMap)token[0]; //check anon credentials from hibernate // do acegi stuff in here, send back temp token return m.get(username); } Dan Rossi wrote: Just found an example here but its a soap service using WS4J is there a soap impl in spring already ? So a php dynamic script is able to securly do a soap request to obtain a token. http://www.vorburger.ch/blog1/2006/10/propagating-acegis-security-context-in.html This is waay over my head but exactly how a security system may work I think. Dan Rossi wrote: nomIad wrote: Hi Dan, Ive written the tutorial your according to. Ive not used this on a clustered machine, but thats not that bad. There is a possibility to share sessions in Database. Its quite fast an reduntant secure. On our cluster we run PHP, but we have NO clustered sessions. The thing is that our loadbalancer distribute the clients in a same way every time. So a client can make 1000 calls, they would all go on Cluster 1. Thats not redundant security, but for our needs its enough. We dont need a REALLY HIGH AVAILABLE cluster for SESSIONS. Ok, well currently we get 10K vod hits a day on each server maybe more, and im not really sure on the third party streams in windows media yet which we are porting to flash. The problem with protecting windows media when i looked into it, its fairly advanced for developing a token based authentication plugin in C# using the API, but the API is poorly documented and minimal resources and building the config management for it requires VC++. Im needing to build something similar for red5. I found, something on a description on exactly what I may need. http://eirikhoem.wordpress.com/2007/05/24/ageci-token-vs-php
Re: [Red5] acegi support in red5
Hi Dan, Ive written the tutorial your according to. Ive not used this on a clustered machine, but thats not that bad. There is a possibility to share sessions in Database. Its quite fast an reduntant secure. On our cluster we run PHP, but we have NO clustered sessions. The thing is that our loadbalancer distribute the clients in a same way every time. So a client can make 1000 calls, they would all go on Cluster 1. Thats not redundant security, but for our needs its enough. We dont need a REALLY HIGH AVAILABLE cluster for SESSIONS. cu nomIad Dan Rossi schrieb: Dan Rossi wrote: Hi I found this link http://jira.red5.org/confluence/display/docs/Red5+and+Acegi+Security so im trying to work out how to enable acegi security in our application. However we kind of need to auto authorize clients rather than ask for logins. With this example how would it be possible to send some information automatically, obtain a temporary session that the client is validated then relogin to obtain a proper expiring session. Looking a bit further it seems we may need the sessions shared across all 3 of the clustered machines. Is this what we need also to use with it ? http://www.ja-sig.org/products/cas/ ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] sound sync
Same Problem, Dont know why, but happens after about 30 minutes live streaming (depends on internet traffic) Ive tried something what made it a bit better. If the delay gets to big, set a Buffertime, and set it back to 0 instant. mfg nomiad Interalab schrieb: Anyone have any ideas about how to prevent audio from getting out of sync with video on the client end? What's happening is that a client will connect to a live video stream and after a while the audio is out of sync by a 1/2 second from the video. Refreshing the page (reloading the flash movie) reconnects fine and is in perfect sync. That says to me that it's a client side buffering issue. Any thoughts from anyone? Bill ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Capture image from video broadcasting
Just an idea. You can capture jpgs out of a stream with ffmpeg. You could possible save the stream to disk (iv seen such a method, but dont know what happens with the live stream), execute ffmpeg, to capture a frame, save the frame for the client. mfg nomIad Daniel Gwerzman schrieb: Hi all, I need you help. I build application with few video broadcasting (each one in a different Scope). I want to show a purview images of the each broadcast. I will capture the images every few minutes and save it on the web-server, from the client side the flash will load the images. I donâ??t know how to do the capture the images of the broadcasting from the server side. Any ideas? _ PC Magazine?s 2007 editors? choice for best Web mail?award-winning Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_pcmag_0507 ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Red 5 Performance
Hi guys, Now its offical and i can tell you. We have done a special DJ broadcasting over the Internet. Red 5 ist the server. Yesterday was our first event and most things worked fine. Small probs with the local webcam (FREEZE) but was local, not red5. about 70 people joined and received a livestream for about 1h. Stream consists of a small live video(120/80) and a 44khz audio Stream. Amazing quality. We ve tuned that you can rate it as a 128kbit mp3 quality or more. The sound was great and the best. Red5 performed out fantastic. We had an avarage CPU of only 15%. After that we made a livechat (moderated) with the artist. Whole stuff, flash and Red5. System: AMD Semptron 3200+ (1.8ghz) 1 GB Ram JAVA 1.6 Trunk 2049 I will inform you next time were doing an event. You have to register, but its free. cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Red5 Performace Video/Audio
.. broke the list... here its not in a wrong leave. P.S. THANKS TO THE TEAM. Hi guys, Now its offical and i can tell you. We have done a special DJ broadcasting over the Internet. Red 5 ist the server. Yesterday was our first event and most things worked fine. Small probs with the local webcam (FREEZE) but was local, not red5. about 70 people joined and received a livestream for about 1h. Stream consists of a small live video(120/80) and a 44khz audio Stream. Amazing quality. We ve tuned that you can rate it as a 128kbit mp3 quality or more. The sound was great and the best. Red5 performed out fantastic. We had an avarage CPU of only 15%. After that we made a livechat (moderated) with the artist. Whole stuff, flash and Red5. System: AMD Semptron 3200+ (1.8ghz) 1 GB Ram JAVA 1.6 Trunk 2049 I will inform you next time were doing an event. You have to register, but its free. cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] question about shared object connection
You cant block off just connections from other domains because the domain is the client itself finally. If someone decrypt your swf he could find everything out to connect to your service. The only way to get that secure is, to use authentication and authorization. A good solution is always to block all unused stuff. There are serveral listners in red 5. And the new implemented SharedObjectSecurity or StreamSecurity can reduce the damage taken. Just block everything your not using, like for example SharedObject creation, or StreamCreation. Ing Juan Peña schrieb: I just have one question about connections to red 5; I will test a shared object on red 5 and works great, but If somebody crack my flash swf and connect to my red5 server they can use it for free, right! Is there a way to protect red5 server to not allow connections from another domains? Sorry if this question are some basic, Thank you for your help in advance Juan Peña www.rwsinternet.com http://www.rwsinternet.com/ Thank you for all red 5 Team (a excellent work) ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Red5 showcase: spreed.com
Hey guys, I think thats really funny. Ive done such an app too, 1 year ago. I used FMS, but was on the way to use Red5. Some of us are doing pretty much the same thing, but there is no FRAMEWORK related to that stuff?! Were all writing the cores of that without any standard way for authentication, authorisation, etc. I think its time for a Flash Framework and Red5 kit for those sort of apps... cu nomiad Storm schrieb: Hi JOachim,congrats! that's pretty simmilar to my own app hehe, only that my live audio and video communication is not a all see all videoconf, it works more like a classroom where the teacher sees everyone but the pupils only (should) look at the teacher. We also figured out a way to share presentations. But then again, congrats on that!. The only point i'm missing is the screen sharing (and remote control), we've tried a few ideas to achieve that but they all were improductive or too bandwidth greedy. Are you using only flash on client side for that? (that was one of my requirements). Hope you can throw some light on this, it would be much appreciated. ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Red5 showcase: spreed.com
Im not talking ONLY about the server, i talk about the flash client. So many things done the same way. Let me give an example. I set up a tutorial for acegi security on the red5 wiki. acegi use a standard way for authentication and authorisation. So, why dont we have these things client side to. Just as an example use an standard Principal System for applications. Life could be so much easier. Im not the one who like to code everytime the same stuff, flash and red5 based. Or just another example a general way storing multiple attributes, connected to clients in a SO. A generalized object oriented way on extracting the UPDATED information and maybe even a standard way to automate your MVC apps models. The more is standard, the faster you can work on your new stuff.. cu nomIad Dan Rossi schrieb: There is already things like playback, publish and sharedobject security. But i know what you mean, and authentication / authorisation framework, those security features could be used to roll your own, but there does need to be some kind of bean you can just enable in your xml config which sets up an authentication plugin for you utilising also the security methods. And you can customise the plugin yourself. It should be enabled with either an embedded db system like hibernate or jdbc etc. I hear now though that rtmps isnt so easy to setup or not working yet in red5 ? That would need to be enabled i guess to send secret keys or a login form to authenticate against. The problem ive yet to work out is if secret key loaded into the client via dynamic scripting is sniffable at runtime. Obviouslly it cant be stored in the swf. nomIad wrote: Hey guys, I think thats really funny. Ive done such an app too, 1 year ago. I used FMS, but was on the way to use Red5. Some of us are doing pretty much the same thing, but there is no FRAMEWORK related to that stuff?! Were all writing the cores of that without any standard way for authentication, authorisation, etc. I think its time for a Flash Framework and Red5 kit for those sort of apps... cu nomiad Storm schrieb: Hi JOachim,congrats! that's pretty simmilar to my own app hehe, only that my live audio and video communication is not a all see all videoconf, it works more like a classroom where the teacher sees everyone but the pupils only (should) look at the teacher. We also figured out a way to share presentations. But then again, congrats on that!. The only point i'm missing is the screen sharing (and remote control), we've tried a few ideas to achieve that but they all were improductive or too bandwidth greedy. Are you using only flash on client side for that? (that was one of my requirements). Hope you can throw some light on this, it would be much appreciated. ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Red5 showcase: spreed.com
Im not talking about a source code based standard, i mean a flexible standard which can be adapted to other systems too. Sebastion wrote he works without flash, but with open lazzo. With booth FMS and Red5 we have standard datatypes. The same in AS and open lazzo(js). Booth languages can create objects, and send via encoding(AMF, or dont know what lazzo does) to the server. The standard im talking about is a plugin interface for common tasks. In this case security, video, syncronisation... Doesnt matter what language. So every contribution to the community that follow that standard is compatible with other components. You can still write your own security, but you have a standard interface others can use. I mean there was so much sourcecode even provided by the community, but everyone has another way of coding and doing things. cu nomIad Dan Rossi schrieb: OK you are talking about a security AS2/AS3 API correct ? Sounds ok, id make it a portable soiution though so that it would work at least in Wowza, as for FMS it needs to do AMF server side for the scripting to databases so doesnt have the flexibility available in java and I guess the C# port. nomIad wrote: Im not talking ONLY about the server, i talk about the flash client. So many things done the same way. Let me give an example. I set up a tutorial for acegi security on the red5 wiki. acegi use a standard way for authentication and authorisation. So, why dont we have these things client side to. Just as an example use an standard Principal System for applications. Life could be so much easier. Im not the one who like to code everytime the same stuff, flash and red5 based. Or just another example a general way storing multiple attributes, connected to clients in a SO. A generalized object oriented way on extracting the UPDATED information and maybe even a standard way to automate your MVC apps models. The more is standard, the faster you can work on your new stuff.. cu nomIad Dan Rossi schrieb: There is already things like playback, publish and sharedobject security. But i know what you mean, and authentication / authorisation framework, those security features could be used to roll your own, but there does need to be some kind of bean you can just enable in your xml config which sets up an authentication plugin for you utilising also the security methods. And you can customise the plugin yourself. It should be enabled with either an embedded db system like hibernate or jdbc etc. I hear now though that rtmps isnt so easy to setup or not working yet in red5 ? That would need to be enabled i guess to send secret keys or a login form to authenticate against. The problem ive yet to work out is if secret key loaded into the client via dynamic scripting is sniffable at runtime. Obviouslly it cant be stored in the swf. nomIad wrote: Hey guys, I think thats really funny. Ive done such an app too, 1 year ago. I used FMS, but was on the way to use Red5. Some of us are doing pretty much the same thing, but there is no FRAMEWORK related to that stuff?! Were all writing the cores of that without any standard way for authentication, authorisation, etc. I think its time for a Flash Framework and Red5 kit for those sort of apps... cu nomiad Storm schrieb: Hi JOachim,congrats! that's pretty simmilar to my own app hehe, only that my live audio and video communication is not a all see all videoconf, it works more like a classroom where the teacher sees everyone but the pupils only (should) look at the teacher. We also figured out a way to share presentations. But then again, congrats on that!. The only point i'm missing is the screen sharing (and remote control), we've tried a few ideas to achieve that but they all were improductive or too bandwidth greedy. Are you using only flash on client side for that? (that was one of my requirements). Hope you can throw some light on this, it would be much appreciated. ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Unhandled Ping Warnings?
Yes, i know this thing with stop,flush,empty. BUT it doesent matter in my situation because i dont wait for that callback. BUT the video itself stops too early. Example: Recording Video: 10 sec Play the video. Play.Stop 7 sec Buffer.Flush 7 sec Buffer.Empty 8 sec Take a look with an flv player direct on Server. The video is COMPLETELY recorded 10 sec. Thats the Problem, and i recognized it only when ping warning comes. Or even stream not found?! mfg nomIad Dan Rossi schrieb: yes i noticed this, stop is called a few seconds before the actual end ? play.complete is finally working as expected ! Joachim Bauch wrote: Hi nomIad, nomIad schrieb: [...] The problem is that EVEN if the video is longer it stops just a variable time after the start before it ends. And i receive the NetStream.Play.Stop. The video is not finished, hows that possible. Is the stream kicked? I get the warns below and everytime this shows up the server send the NetStream.Play.Stop or just a few secs after. NetStream.Play.Stop is sent by the server when he finished sending the file to the client. It does *NOT* mean, that playback is finished. See this mail for informations on how to detect the real end of a stream: http://osflash.org/pipermail/red5_osflash.org/2007-April/010498.html Joachim ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Stream Close
Hey, come on There must be an answer to this problem ;-) indeed... i need it! nomIad schrieb: Hi, Im actually working on a video guest book. So its a simple application but it has a security issue. People can broadcast their videos without limitations. Sure, i limit it in the client, but thats not secure, because its easy to write according clients (guestbooks have only minimal authentication). So i cant restrict the size of the recorded video, so i have to restrict the duration that can be maximal recorded. The best way of doing this is serverside. So i onBroadcastStart i create a new ScheduleOnceJob called StreamKillerJob. The only arguments i have available at this time is the StreamService or the BroadcastStream itself. If i only use the stream itself, it wouldn't be unregistered (according the sourcecode in StreamService). But to unregister it with in the StreamService i need the Stream id. How can i access this Id in the onBroadcastStart? cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] red5 silverlight
Oh, Its annouced for linux?! You mean that microsoft ist going to provide FIRST the .net 2.0 framework on linux? *g* And i dont think GDI+ is very compatible with the actual GDK... I will kick myself in my *** if micisoft REALLY ist doing ANY affort on make ANY programm portable, even compatible for linux. It happend to much and there is a reason why someone coded mono. But if you know how to code a mono App you will notice that its slightly different from windows. No, micisoft is doing its own thing, AND ive took a look at silverlight. Lets say AS1.0. Its for an animated sidebar menu on you homepage *g* ;-) mfg nomIad Steffen Heil schrieb: Hi If it's Microsoft's it won't be cross-anything It already exists for Windows (Internet Explorer and Firefox) and for Apple (Safari and Firefox) and is announced for linux. Flash doesn't support more plattforms either. And the final is announced for the first half of 2007. Noone should switch immediately, but anyone developing for flash should definitely keep an eye on silverlight. Regards, Steffen Discuss On 4/17/07, Interalab [EMAIL PROTECTED] wrote: Or better yet, a Red5 that auto-magically figures out what kind of player/publisher is attempting to connect and then streams accordingly? BTW, sliverlight appears to be a vapor-ware/technology preview at the moment. How long did it take to release Vista after it was announced? Ruben Waitz wrote: What about a cross-technology (multiple runtimes) Red5 server, also capable of streaming Silverlight? http://www.microsoft.com/silverlight http://www.microsoft.com/silverlight Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation of media experiences and rich interactive applications (RIAs) for the Web. Microsoft: LAS VEGAS - April 16, 2007 - Today at the National Association of Broadcasters (NAB) conference, 2007, Microsoft Corp. unveiled Microsoft SilverlightR, a new cross-browser, cross-platform plug-in for delivering the next generation of media experiences and rich interactive applications (RIA) for the Web. Early supporters of the new platform include Akamai, Brightcove, Eyeblaster, Limelight, Major League Baseball, Navisite, Netflix, Skinkers, Sonic Solutions, SyncCast, Tarari, Telestream, Winnov, and more. Ruben www.red5tutorials.net: Tutorials - How tos - FAQ ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- --- If a man speaks in a forest and his wife is not there, is he still wrong? ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Received client buffer request for non-existing stream: 1
Hi John, Ive updated too to 1883. Same problem but only sometimes. [DEBUG] 2641906 pool-2-thread-16:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] [WARN] 2646766 pool-2-thread-9:( org.red5.server.net.rtmp.RTMPHandler.warn ) Unhandled ping: Ping: 3, 0, 1000, -1 00 03 00 00 00 00 00 00 03 E8 [WARN] 2646781 pool-2-thread-7:( org.red5.server.net.rtmp.RTMPHandler.warn ) Received client buffer request for non-existing stream: 3 [DEBUG] 2646781 pool-2-thread-7:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] [WARN] 2651422 pool-2-thread-2:( org.red5.server.net.rtmp.RTMPHandler.warn ) Received client buffer request for non-existing stream: 2 [DEBUG] 2651422 pool-2-thread-2:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] [WARN] 2653984 pool-2-thread-7:( org.red5.server.net.rtmp.RTMPHandler.warn ) Received client buffer request for non-existing stream: 1 [DEBUG] 2653984 pool-2-thread-7:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] John Grden schrieb: I just updated to 1883 as I saw that Joachim made an update. I cleaned and compiled and I'm still getting this when I create the NetStream object. [java] [WARN] 114172 pool-1-thread-7:( org.red5.server.net.rtmp.RTMPHandler.warn ) Received client buffer request for non-existing strea m: 1 anyone else able to reproduce with a Flex2 app while trying to record a stream of audio only? -- [ JPG ] ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Stream Close
Hi Steven, Yes i have implemeted it that way, but there is a problem. It is the StreamService. I can call .close() but its not unregistered there. The StreamService has the streams registered with the ID. If i dont unregister the stream at the Service, i cant record the SAME stream again because its ID is not free ((IStreamCapableConnection) conn) .deleteStreamById(getCurrentStreamId()); Is called in the service file. You obtain the StreamID from a static method based on the actual thread. So if i try to record the SAME stream again with the SAME open connection it tells me NoAccess because the stream is already registered in the connection. mfg nomIad Steven Gong schrieb: Nomlad, If you want to restrict the duration of a specific stream for recording, you could implement the streamRecordStart() method from IStreamAwareScopeHandler. To achieve this, you just need to implements IStreamAwareScopeHandler in your Application class. The streamRecordStart() method will be called when the recording takes place (the first packet got from client). You might put the IBroadcastStream in a queue and call the IBroadcastStream.close() on timeout. Hope this helps. On 4/17/07, *nomIad* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey, come on There must be an answer to this problem ;-) indeed... i need it! nomIad schrieb: Hi, Im actually working on a video guest book. So its a simple application but it has a security issue. People can broadcast their videos without limitations. Sure, i limit it in the client, but thats not secure, because its easy to write according clients (guestbooks have only minimal authentication). So i cant restrict the size of the recorded video, so i have to restrict the duration that can be maximal recorded. The best way of doing this is serverside. So i onBroadcastStart i create a new ScheduleOnceJob called StreamKillerJob. The only arguments i have available at this time is the StreamService or the BroadcastStream itself. If i only use the stream itself, it wouldn't be unregistered (according the sourcecode in StreamService). But to unregister it with in the StreamService i need the Stream id. How can i access this Id in the onBroadcastStart? cu nomIad ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Stream dont play correct
Hi, Ive recorded serveral Streams with my webcam. I request now i try to play them. I opened several same swf and click on play. The output shows everytime the same. Stream: NetStream.Play.Reset Stream: NetStream.Play.Start Stream: NetStream.Buffer.Full Stream: NetStream.Play.Stop Stream: NetStream.Buffer.Flush But the funny thing is some play, and some don't. Down there is the app log. [DEBUG] 3258234 pool-2-thread-8:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] [WARN] 3259281 pool-2-thread-1:( org.red5.server.net.rtmp.RTMPHandler.warn ) Unhandled ping: Ping: 3, 0, 1000, -1 00 03 00 00 00 00 00 00 03 E8 [WARN] 3259281 pool-2-thread-9:( org.red5.server.net.rtmp.RTMPHandler.warn ) Received client buffer request for non-existing stream: 1 [DEBUG] 3259281 pool-2-thread-9:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] [WARN] 3260375 pool-2-thread-16:( org.red5.server.net.rtmp.RTMPHandler.warn ) Unhandled ping: Ping: 3, 0, 1000, -1 00 03 00 00 00 00 00 00 03 E8 [DEBUG] 3260391 pool-2-thread-6:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] [WARN] 3261516 pool-2-thread-3:( org.red5.server.net.rtmp.RTMPHandler.warn ) Unhandled ping: Ping: 3, 0, 1000, -1 00 03 00 00 00 00 00 00 03 E8 [DEBUG] 3261516 pool-2-thread-3:( ws.ppmcity.vbook.Application.debug ) Client wants vid: [EMAIL PROTECTED] ?!? Someone know this? mfg nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] red5 silverlight
Hi Steffen, Thats not right, they dont make it compatible. And even if you can download the source you re not allowed to use it commercial. Just read the license on the site. Ive talked to a manager (no names) and he told me microsoft doesnt do anything for any linux support (yes, wow we see some whitepapers). Microsoft does ONE thing. They make open standards, but that is just a marketing strategy. And any rumorers about microsoft goes opensource... ha... i have heard too much from this guy They are targeting flash with silverlight and there would be no point in that without supporting Linux. Do you really think after the big marketing campange for vista, that they are interested in linux. There are some guys at microsoft that belive in these things. Maybe someone knows FlexWiki. But, what was/is FlexWiki? A project started at microsoft, was quite well, and know the technology is used in Channel9. I hate to say it, but this company is too big for some smart guys keeping the software free. mfg nomIad Roberto Saccon schrieb: Does anybody know whether silverlight allows upstreaming audio/video to the server, as in flash ? -- Roberto Saccon ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Stream Close
Hi, Im actually working on a video guest book. So its a simple application but it has a security issue. People can broadcast their videos without limitations. Sure, i limit it in the client, but thats not secure, because its easy to write according clients (guestbooks have only minimal authentication). So i cant restrict the size of the recorded video, so i have to restrict the duration that can be maximal recorded. The best way of doing this is serverside. So i onBroadcastStart i create a new ScheduleOnceJob called StreamKillerJob. The only arguments i have available at this time is the StreamService or the BroadcastStream itself. If i only use the stream itself, it wouldn't be unregistered (according the sourcecode in StreamService). But to unregister it with in the StreamService i need the Stream id. How can i access this Id in the onBroadcastStart? cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] new Tutorial: Red5 and Acegi
Hi, had some time (lol) to write a tutorial about implementing authentication. Its not the best way for authorisation, but that have to be implemented in the core Red5 and Acegi Security http://jira.red5.org/confluence/display/docs/Red5+and+Acegi+Secuirty cu nomiad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Backport to Mina 1.0.1
Hi, Was there a reason to backport red5 to mina 1.0.1? And is there any things we have to mention in our old apps? mfg nomiad? ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Error with actual trunk 1826 and Java 6
Hi, Im getting following error? Is it because the backport our sould we submit a ticket. [INFO] 1750 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.info ) Destroying singletons in {org.springframework.beans.factory support.DefaultListableBeanFactory defining beans [red5.server,serializer,deserializer,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCode Factory,streamableFileFactory,sharedObjectService,streamService,providerService,consumerService,BWControlService,schedulingService,threadFactory,remotingP ol,object.cache,keyframe.cache,flv.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean,org.springframework.beans.factory.config.Method nvokingFactoryBean#1,flvreader.impl,mp3reader.impl,playlistSubscriberStream,clientBroadcastStream]; root of BeanFactory hierarchy} Exception in thread main java.lang.VerifyError: class edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger overrides final method lazySet (I)V at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at edu.emory.mathcs.backport.java.util.concurrent.Executors$DefaultThreadFactory.clinit(Executors.java:528) at edu.emory.mathcs.backport.java.util.concurrent.Executors.defaultThreadFactory(Executors.java:288) at org.apache.mina.integration.spring.ThreadPoolExecutorFactoryBean.init(ThreadPoolExecutorFactoryBean.java:53) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:45) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:701) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:687) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:388) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346) at org.springframework.context.support.FileSystemXmlApplicationContext.init(FileSystemXmlApplicationContext.java:89) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:71) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:150) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:745) at
Re: [Red5] Error with actual trunk 1826 and Java 6
Too fast in writing emails. Solution: build.properties # Change this var to build to a different Java version java.target_version=1.6 before it was 1.5 ... Ive cleaned the working dir cu nomiad nomIad schrieb: Hi, Im getting following error? Is it because the backport our sould we submit a ticket. [INFO] 1750 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.info ) Destroying singletons in {org.springframework.beans.factory support.DefaultListableBeanFactory defining beans [red5.server,serializer,deserializer,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCode Factory,streamableFileFactory,sharedObjectService,streamService,providerService,consumerService,BWControlService,schedulingService,threadFactory,remotingP ol,object.cache,keyframe.cache,flv.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean,org.springframework.beans.factory.config.Method nvokingFactoryBean#1,flvreader.impl,mp3reader.impl,playlistSubscriberStream,clientBroadcastStream]; root of BeanFactory hierarchy} Exception in thread main java.lang.VerifyError: class edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger overrides final method lazySet (I)V at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at edu.emory.mathcs.backport.java.util.concurrent.Executors$DefaultThreadFactory.clinit(Executors.java:528) at edu.emory.mathcs.backport.java.util.concurrent.Executors.defaultThreadFactory(Executors.java:288) at org.apache.mina.integration.spring.ThreadPoolExecutorFactoryBean.init(ThreadPoolExecutorFactoryBean.java:53) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:45) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:701) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:687) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:388) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346) at org.springframework.context.support.FileSystemXmlApplicationContext.init(FileSystemXmlApplicationContext.java:89) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:71) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java
[Red5] Solution for database connections
Hi, Finally i ve written a simple tutorial about using JDBC in red5 context. There were several approaches but i thought to stop the same question again and again we can use the wiki (woohoo). Heres the link (excuse my bad English, i have no spell checker in opera ;-) ) http://jira.red5.org/confluence/display/docs/Red5+and+Spring+JDBC cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Solution for database connections
No, actually i dont. Ive no experience with hibernate. Im coming from a .net background. NHibernate was introduced later, and i had some own wrapper techniques for optimal connection handling. Especially im using many stored procedures. Ive seen some example where hibernate can be a real boost even the data caching is managed automatically and its really customizeable with hql. Maybe a second article. I think we re all using the wiki too less ;-) cu nomIad Sebastian Wagner schrieb: hi, thx for your aticle. quote *In this article i will explain how to implement a good way for accessing a Database without hibernate.* is there an alternative resource with a tutorial for hibernate? I am using hibernate everything works perfect but i can only use it with this property: hibernate.query.factory_class org.hibernate.hql.classic.ClassicQueryTranslatorFactory using the default query factory class: * org.hibernate.hql.ast.ASTQueryTranslatorFactory * will cause an error like that: [ERROR] 559563 SocketAcceptorIoProcessor-0.0:( org.xmlcrm.app.data.user .Usermanagement.error ) org.hibernate.QueryException : ClassNotFoundException: org.hibernate.hql.ast.HqlToken [select c from ] any idea's how to use the default hibernate query_factory? I think its maybe because the context of the server uses another antlr-version but i am not sure. regards sebastian 2007/3/26, nomIad [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hi, Finally i ve written a simple tutorial about using JDBC in red5 context. There were several approaches but i thought to stop the same question again and again we can use the wiki (woohoo). Heres the link (excuse my bad English, i have no spell checker in opera ;-) ) http://jira.red5.org/confluence/display/docs/Red5+and+Spring+JDBC cu nomIad ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- Sebastian Wagner http://www.webbase-design.de http://www.laszlo-forum.de [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] STRANGE! (lag)
k, guys I have something interesting for you. We are all complaining about the lag in the in livestreaming. I got mad about that, and work each possibility out what the reason of the problem is. Ive never looked at the client itself!?! Here it comes... Code an application that simply var mic:Microphone=Microphone.get(); this.attachAudio(mic); Additional you could also play a Video of your webcam. Use your favorite music player and play a sample music file. With the stereo mixer ability of your soundcard you can use the played file as a microphone in flash. So after starting that i heard a lag of the music file. Just some milli secs. BUT in time it increases up to 3 SECONDS! And thats really strange. Anyone has an explanation for this? mfg nomiad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] ERROR with webcam stream
Hi, ? The bandwidth code is deactivated? Am i wrong? Strange that error. The funny thing, it happens only when i start to broadcast a webcam stream The other applications run as usual. mfg nomiad [ERROR] 48279 SocketAcceptorIoProcessor-0.2:( org.red5.server.net.rtmp.BaseRTMPHandler.error ) Exception java.lang.NullPointerException at org.red5.server.stream.SimpleBWControlService.unregisterBWControllable(SimpleBWControlService.java:164) at org.red5.server.net.rtmp.RTMPConnection.close(RTMPConnection.java:478) at org.red5.server.net.rtmp.RTMPMinaConnection.close(RTMPMinaConnection.java:115) at org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:388) at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:126) at org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:117) at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:700) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:361) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:785) at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:62) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:187) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:361) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:785) at org.apache.mina.common.support.AbstractIoFilterChain$HeadFilter.messageReceived(AbstractIoFilterChain.java:616) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:361) at org.apache.mina.common.support.AbstractIoFilterChain.fireMessageReceived(AbstractIoFilterChain.java:352) at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:288) at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:248) at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$500(SocketIoProcessor.java:49) at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:540) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Storm schrieb: that looks more like a problem with an scheduled job than one about cam streaming. I'm widely using webcam streaming and i've never seen that error. Cheers Carlos On 3/5/07, *nomIad* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I have again reproduced the error. It happens (sometimes) when a client broadcast a webcam stream. | [ERROR] 108218 DefaultQuartzScheduler_Worker-2:( org.red5.server.scheduling.QuartzSchedulingService.error ) Job [EMAIL PROTECTED] execution failed: null ?! The resulting problem is that the room or app disconnect is not called anymore! So the server doesnt clear user variables and the result are Ghosts in Chatrooms.. ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- --- Nos gusta los domingos ir al parque a pinchar los globos de los niños para verlos llorar .- Eskorbuto ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] One-time ticket authentication through MySQL
No, we dont use the PHP Session, in fact, we could. Its easier to work with you own Session ID. You can also use it as an authentification Ticket. For example the technique of .nET is good. Just think about it. The Server use a AES cipher to crypt a Ticket. In this ticket you can include everything, IDs, Specials Authentication information. Then the Server stores it on the client as a cookie. The client is NOT ABLE to decrypt it, recrypt or anything else, the code is to big for purpose. The client sends the ticket back to the server and the server can encrypt the stuff again with its secret key. mfg nomIad Dan Rossi schrieb: Db based session stuff ? nomIad wrote: Just for information. We use another technique in our Project. The problem is we have to provide a onetime logon for our customers. So we work with PHP sessions and Authentification tickets. To ensure that the user connects to the chat, we call an transaction key from the Server (One time). And share it for all applications used. The special thing is, that there is no matter how many browser window the client has open. Its a very fast and comfortable for the client. And the good thing, its provide a good security. mfg nomIad Dan Rossi schrieb: That sounds like a killa plan or just use AMF via the app. However our video servers are in one DC and sites in another, so thedb conns are over the wire. So an embedded db in red5 if there is an embedded java solution ? And connecting to the app via AMF3 ! thats the plan to test. I use mysql exclusively but on the php nix end. The video servers are on windows, so if someone has an embedded db suggestion let me know. Storm wrote: Thanks for sharing, Jason. This piece could be useful for me in near future ;) Cheers On 2/28/07, Jason Jensen [EMAIL PROTECTED] wrote: I'm not a Java developer but I have created VERY simple authentication for my oflaDemo webapp. I got the idea from reading the 'Programming Flash Communication Server' book (published by O'reilly), chaper 18 'Securing Applications'. 1. Flash movie passes username and password to web server(via SSL using AMFPHP) 2. Web server/application server returns a one-time ticket(through two hashed strings, tid and ticket) to the flash movie 3. Flash movie connects to Red5 using the tid and ticket(instead of username and password...) 4. Red5 checks the tid and ticket against a MySQL db and accepts or rejects the connection In step one I also create a timestamp representing the creation time, and a 'stale' datetime a couple minutes after the creation time. So my simple 'tickets' table has five columns: tid, ticket, uid(linking the ticket to a user table), created(timestamp) and staleDateTime. The ticket is only valid if it is used between the creation time and stale time. You'll need to install the MySQL JDBC driver and add it's jar to your classpath. Here's my oflaDemo Application.java, but please remember this is temporary authentication... and VERY simple!!! Hope this helps someone :-) code follows... package org.red5.server.webapp.oflaDemo; import org.red5.server.adapter.ApplicationAdapter; import org.red5.server.api.IConnection; import org.red5.server.api.IScope; import org.red5.server.api.stream.IServerStream; import org.red5.server.api.stream.IStreamCapableConnection; import org.red5.server.api.stream.support.SimpleBandwidthConfigure; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; //import sql classes import java.sql.*; public class Application extends ApplicationAdapter { //logging private static final Log log = LogFactory.getLog(Application.class); private IScope appScope; private IServerStream serverStream; /** [EMAIL PROTECTED] [EMAIL PROTECTED]} */ @Override public boolean appStart(IScope app) { appScope = app; return true; } /** [EMAIL PROTECTED] [EMAIL PROTECTED]} */ @Override public boolean appConnect(IConnection conn, Object[] params) { // Trigger calling of onBWDone, required for some FLV players measureBandwidth(conn); if (conn instanceof IStreamCapableConnection) { IStreamCapableConnection streamConn = (IStreamCapableConnection) conn; SimpleBandwidthConfigure sbc = new SimpleBandwidthConfigure(); sbc.setMaxBurst(8 * 1024 * 1024); sbc.setBurst(8 * 1024 * 1024); sbc.setOverallBandwidth(2 * 1024 * 1024); streamConn.setBandwidthConfigure(sbc); } // if (appScope == conn.getScope()) { // serverStream = StreamUtils.createServerStream(appScope, live0); // SimplePlayItem item = new SimplePlayItem(); // item.setStart(0); // item.setLength(1); // item.setName(on2_flash8_w_audio); // serverStream.addItem(item); // item = new SimplePlayItem(); // item.setStart(2); // item.setLength(1); // item.setName(on2_flash8_w_audio); // serverStream.addItem(item); // serverStream.start(); // try
[Red5] huge livedelay on local machine
Hi, Im currently testing some stuff with Red5. Maybe anybody has an solution or even a explanation. Im running my Red5 Server local. Its the latest trunk version. 3 Client connect to my Server and connect to their streams. I connect with a local client too. We are connected to the same Router. My server is a Core Duo laptop with 1GB ram. First thing. While testing, i connected to the Server with a wrong Streamid, starting with a undefined. What happend is that the Server hang and no roomLeave was executed. After some time, a cleanup process mentioned in the log that the process was not accessible anymore. I tested this behavior some more times. Its a pitty, that i have not set up a filelog output. Second. I connected from now on with the right stream name, waited for the client publish. Everything works fine. Over each video i setup a bar indicating the live delay. The processor is about 20-30% (one core, so high because of the webcam and the flash display). After that i bound the wrapper to only the second CPU. Smoothly running with 5%. The first ten seconds, about 0.3 livedelay each video on every client EVEN the Client on the Server I checked the RAM... only used 600mb of 1gb. Suddenly the delay of one client run high, up to 3 seconds. After a time the other clients starts rising also. Again, ON the Server and client cams... They reach 1.5 seconds delay. The one cam starts rising the delay even higher reaching 9 seconds delay. Never going down. I stopped the stream from the client, and switched it on again. The delay reduced to 1.5 seconds. But after some seconds it started climbing again up to 7 seconds Anyone has an exlpanation for this behavior. I mean, we are in a local network with pingtime of 1ms.. ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] One-time ticket authentication through MySQL
Just for information. We use another technique in our Project. The problem is we have to provide a onetime logon for our customers. So we work with PHP sessions and Authentification tickets. To ensure that the user connects to the chat, we call an transaction key from the Server (One time). And share it for all applications used. The special thing is, that there is no matter how many browser window the client has open. Its a very fast and comfortable for the client. And the good thing, its provide a good security. mfg nomIad Dan Rossi schrieb: That sounds like a killa plan or just use AMF via the app. However our video servers are in one DC and sites in another, so thedb conns are over the wire. So an embedded db in red5 if there is an embedded java solution ? And connecting to the app via AMF3 ! thats the plan to test. I use mysql exclusively but on the php nix end. The video servers are on windows, so if someone has an embedded db suggestion let me know. Storm wrote: Thanks for sharing, Jason. This piece could be useful for me in near future ;) Cheers On 2/28/07, Jason Jensen [EMAIL PROTECTED] wrote: I'm not a Java developer but I have created VERY simple authentication for my oflaDemo webapp. I got the idea from reading the 'Programming Flash Communication Server' book (published by O'reilly), chaper 18 'Securing Applications'. 1. Flash movie passes username and password to web server(via SSL using AMFPHP) 2. Web server/application server returns a one-time ticket(through two hashed strings, tid and ticket) to the flash movie 3. Flash movie connects to Red5 using the tid and ticket(instead of username and password...) 4. Red5 checks the tid and ticket against a MySQL db and accepts or rejects the connection In step one I also create a timestamp representing the creation time, and a 'stale' datetime a couple minutes after the creation time. So my simple 'tickets' table has five columns: tid, ticket, uid(linking the ticket to a user table), created(timestamp) and staleDateTime. The ticket is only valid if it is used between the creation time and stale time. You'll need to install the MySQL JDBC driver and add it's jar to your classpath. Here's my oflaDemo Application.java, but please remember this is temporary authentication... and VERY simple!!! Hope this helps someone :-) code follows... package org.red5.server.webapp.oflaDemo; import org.red5.server.adapter.ApplicationAdapter; import org.red5.server.api.IConnection; import org.red5.server.api.IScope; import org.red5.server.api.stream.IServerStream; import org.red5.server.api.stream.IStreamCapableConnection; import org.red5.server.api.stream.support.SimpleBandwidthConfigure; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; //import sql classes import java.sql.*; public class Application extends ApplicationAdapter { //logging private static final Log log = LogFactory.getLog(Application.class); private IScope appScope; private IServerStream serverStream; /** [EMAIL PROTECTED] [EMAIL PROTECTED]} */ @Override public boolean appStart(IScope app) { appScope = app; return true; } /** [EMAIL PROTECTED] [EMAIL PROTECTED]} */ @Override public boolean appConnect(IConnection conn, Object[] params) { // Trigger calling of onBWDone, required for some FLV players measureBandwidth(conn); if (conn instanceof IStreamCapableConnection) { IStreamCapableConnection streamConn = (IStreamCapableConnection) conn; SimpleBandwidthConfigure sbc = new SimpleBandwidthConfigure(); sbc.setMaxBurst(8 * 1024 * 1024); sbc.setBurst(8 * 1024 * 1024); sbc.setOverallBandwidth(2 * 1024 * 1024); streamConn.setBandwidthConfigure(sbc); } // if (appScope == conn.getScope()) { // serverStream = StreamUtils.createServerStream(appScope, live0); // SimplePlayItem item = new SimplePlayItem(); // item.setStart(0); // item.setLength(1); // item.setName(on2_flash8_w_audio); // serverStream.addItem(item); // item = new SimplePlayItem(); // item.setStart(2); // item.setLength(1); // item.setName(on2_flash8_w_audio); // serverStream.addItem(item); // serverStream.start(); // try { //serverStream.saveAs(aaa, false); //serverStream.saveAs(bbb, false); // } catch (Exception e) {} // } //**START AUTHENTICATION CODE** //here we go... boolean authenticated = false; authenticated = authenticate(params); if(authenticated){ log.info(Come on in friend!); return super.appConnect(conn, params); }else{ log.info(Yikes! A LEACH!!); } rejectClient(); return false; } private boolean authenticate(Object[] params){ String authTicketID = (String)params[0]; String authTicket = (String)params[1]; //convert the third parameter from a string that represents a timestamp, to a java timestamp data type java.sql.Timestamp authTimestamp
Re: [Red5] Red5 testing
im not sure, i post the error log Maybe its a problem already existing in tracker... For explanation. After a client disconnects i clean up some variables in the shared Object. It happens when the last client disconnects. I thought the shared object is immediately gone when the LAST client disconnects, but it isnt. If a client joins in the closing process the old member still exists... vm 1| [ERROR] 266503054 SocketAcceptorIoProcessor-0.0:( org.red5.server.net.rtmp.BaseRTMPHandler.error ) Exception vm 1| java.lang.NullPointerException vm 1| at org.red5.server.so.SharedObject.sendUpdates(SharedObject.java:271) vm 1| at org.red5.server.so.SharedObject.notifyModified(SharedObject.java:359) vm 1| at org.red5.server.so.SharedObject.endUpdate(SharedObject.java:617) vm 1| at org.red5.server.so.SharedObjectScope.endUpdate(SharedObjectScope.java:162) vm 1| at org.red5.server.so.SharedObjectScope.dispatchEvent(SharedObjectScope.java:382) vm 1| at org.red5.server.net.rtmp.RTMPHandler.onSharedObject(RTMPHandler.java:477) vm 1| at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:167) vm 1| at org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:117) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:700) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:361) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:785) vm 1| at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:62) vm 1| at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:187) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:361) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:785) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain$HeadFilter.messageReceived(AbstractIoFilterChain.java:616) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:361) vm 1| at org.apache.mina.common.support.AbstractIoFilterChain.fireMessageReceived(AbstractIoFilterChain.java:352) vm 1| at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:288) vm 1| at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:248) vm 1| at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$500(SocketIoProcessor.java:49) vm 1| at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:540) vm 1| at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43) vm 1| at java.lang.Thread.run(Unknown Source) Steven Gong schrieb: What's the problem when disconnecting? On 2/26/07, *nomIad* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, We have Red5 Server online since 2 months. Its very stable, the simple actions work without any lag or anything. We are running a Red5 Chat and Video Chat. The Video chat has some problems with bad connections. Overall: We have about 100 clients connecting in a hour, more or less, depends on time. They communicate via chat and private messages. I have no problems at all, but the one when disconnecting just for you to know what can red 5 do. cu nomIad ___ Red5 mailing list Red5@osflash.org mailto:Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] urgent , help with rebuffering on VOD
No, i have tried it out. The double buffer is too slow. On my local system i have no problem. But on the net its too slow... Take a look at the collab.nl chat. Same problem, but with Unity server i think... cu nomIad Dan Rossi schrieb: I dont even think the dual threshold buffer system works, http://www.adobe.com/devnet/flashmediaserver/articles/fms_dual_buffering.html when a buffer is full if i set bs.buffertime to 15 the bufferlength still remains the initial buffer time of 4 seconds. Any ideas / work arounds ? Dan Rossi wrote: A 300k stream rebuffered after 54 seconds then again at 1.14 :\ Dan Rossi wrote: Hi to date ive still yet to work out a solution for video rebuffering problems. I set the buffer time to 10 seconds, when i goto play the clip it will start then on the first frame and immediately begin to rebuffer. And then at certain times in a pattern will rebuffer. Ive never managed to get a video to play without stopping really :\ We need to move from progressive download via IIS which is much stabler to streaming to get a scrub control feature in our custom player working :\ I cant make this live until i work this one out, coz many people wont be happy about it ! Im testing a 512K clip on a 24Mbit ADSL connection. Would the talk of dynamic buffering help ? If so how is this applied, or will caching help ? Let me know thanks. Dan ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] urgent , help with rebuffering on VOD
I had no chance testing it yet correctly. Our Internet lags, that even a small stream isn't working correctly. I saw that the buffer WASN'T reset it can dynamically change. But the start buffer of .5 i used this time is too less. And 1 isn't acceptable for live Streaming. I think that the cause of the problem is that the stream upload is to slow and so there is a too slow broadcasting?!?! Anyone else can analyze this theory? cu nomIad Dan Rossi schrieb: Maybe FMS does something when you dynamically reset the bufferTime ? I would think when u reset it, it keeps adding to the buffer but it doesnt. I dont know what to do about it, currently we have been just doing live broadcasts because VOD isnt ready and isnt playable. It does it to every video no matter what bitrate it is. nomIad wrote: No, i have tried it out. The double buffer is too slow. On my local system i have no problem. But on the net its too slow... Take a look at the collab.nl chat. Same problem, but with Unity server i think... cu nomIad Dan Rossi schrieb: I dont even think the dual threshold buffer system works, http://www.adobe.com/devnet/flashmediaserver/articles/fms_dual_buffering.html when a buffer is full if i set bs.buffertime to 15 the bufferlength still remains the initial buffer time of 4 seconds. Any ideas / work arounds ? Dan Rossi wrote: A 300k stream rebuffered after 54 seconds then again at 1.14 :\ Dan Rossi wrote: Hi to date ive still yet to work out a solution for video rebuffering problems. I set the buffer time to 10 seconds, when i goto play the clip it will start then on the first frame and immediately begin to rebuffer. And then at certain times in a pattern will rebuffer. Ive never managed to get a video to play without stopping really :\ We need to move from progressive download via IIS which is much stabler to streaming to get a scrub control feature in our custom player working :\ I cant make this live until i work this one out, coz many people wont be happy about it ! Im testing a 512K clip on a 24Mbit ADSL connection. Would the talk of dynamic buffering help ? If so how is this applied, or will caching help ? Let me know thanks. Dan ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Video delays, 0.6RC2 doesn't compile
Yes, i have the same problem with Red5. Live streaming media plays an important role in our portal. Try it since 0.3 but never got better results. After doing some tests i finally found out that there is a relation about network latency and the lagging issues. Yes, you could prevent that with just setting up the buffer to 2 seconds but there is an major lag after that. I use my network analyzer and saw there are some really high differences in the streaming. The funny thing is, that our internet connection is capable of 30 webcam streams at one time with good quality. I think that the ups and down demand on the connection, not on red5 itself... Anyone other experience..? cu nomIad Daniel Küstner schrieb: Hi, I am working on the AV chat for Covcell (see http:// www.covcell.org/). During the Covcell project we are implementing some extensions to the open source LMS Moodle, among other things an audio-/video chat. The chat component consists of a flash client, compiled from OpenLaszlo sources and the Red5 streaming server. First I'd like to thank you for the great work you are doing on Red5. It's a big help to have such an easy to use and powerful tool. I have two issues with Red5: 1) When streaming a broadcast stream, the result at client side is getting a delay after some time. Sometimes the video stream catches up again, sometimes it's getting worse, the longer I am streaming. I found the track ticket http://mirror1.cvsdude.com/trac/osflash/red5/ ticket/177. Does anybody know the progress on this bug? Will it be fixed in 0.6 final? 2) In order to check, if it is fixed in 0.6 RC2, I downloaded it, but got some build errors in Eclipse. The errors are all happening at accesses to the class javax.script.ScriptEngine, which is delivered in js-223-1.0-pr.jar. Maybe a wrong version of that library was delivered? I am using Eclipse 3.2.1 on a Mac OS X 10.4.8 with Java 1.5.0. greetinx. daniel. ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Stream issiou
Anyone has an explanation for the following? [DEBUG] 1385178 SocketAcceptorIoProcessor-0.0:( ws.ppmcity.test.multievent.MultieventApp.debug ) new client connets [DEBUG] 1385209 SocketAcceptorIoProcessor-0.0:( ws.ppmcity.test.multievent.MultieventApp.debug ) streamSubscriberStart: org.red5.server.stream.PlaylistSubs criberStream [DEBUG] 1385225 SocketAcceptorIoProcessor-0.0:( ws.ppmcity.test.multievent.MultieventApp.debug ) Stream Publish Start: my_stream [DEBUG] 1385225 SocketAcceptorIoProcessor-0.0:( ws.ppmcity.test.multievent.MultieventApp.debug ) Stream Start: 2296e886-7a84-409c-9112-6fed4d52143d [WARN] 1385225 SocketAcceptorIoProcessor-0.0:( org.red5.server.stream.consumer.ConnectionConsumer.warn ) Skipping message with negative timestamp. [WARN] 1385225 SocketAcceptorIoProcessor-0.0:( org.red5.server.stream.consumer.ConnectionConsumer.warn ) Skipping message with negative timestamp. [WARN] 1385225 SocketAcceptorIoProcessor-0.0:( org.red5.server.stream.consumer.ConnectionConsumer.warn ) Skipping message with negative timestamp. [WARN] 1385225 SocketAcceptorIoProcessor-0.0:( org.red5.server.stream.consumer.ConnectionConsumer.warn ) Skipping message with negative timestamp. [WARN] 1385225 SocketAcceptorIoProcessor-0.0:( org.red5.server.stream.consumer.ConnectionConsumer.warn ) Skipping message with negative timestamp. [WARN] 1385225 SocketAcceptorIoProcessor-0.0:( org.red5.server.stream.consumer.ConnectionConsumer.warn ) Skipping message with negative timestamp. [WARN] 1385225 SocketAcceptorIoProcessor-0.0:( org.red5.server.stream.consumer.ConnectionConsumer.warn ) Skipping message with negative timestamp. Scenario: A client connets and publish a stream (attached with microphone) to the server. At the same time another user connects to the Stream to receive. To Start the stream i use stream.send(...). The other client receive one time, and one time not. After disconnecting there was one Skipping message with negative timestamp.. After a second try there were two.. Even if i disconnect both, subscriber and receiver the above message count grows?! cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Hi guys
We are about to develop a big web2.0 application. The backend is powered by red5 and for the first time php. We need free lancers or maybe someone to employ from Switzerland. Skills: - Java knowledge (focus on database and red5) - Actionscript 2 and 3, OOP, UML - Design (Component look, focus on UI) Anyone interested can send me an email. [EMAIL PROTECTED] For the future, my company is interested in keeping the red5 project up. Is there any possibility for investigating in the red5 Project or anything else we can support the project? cu nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] anybody interested in Erlang RTMP implementation
Have my eyes caught there the word C#.. jiippiieee When to start, what to do? cu nomIad On Tue, 20 Jun 2006 13:27:59 +0200, Michael Klishin [EMAIL PROTECTED] wrote: Luke Hubbard wrote: And re: Erlang rtmp implementation.. sounds wicked. Luke, I heard you guys plan C# version of Red5 later on... How about Ruby? ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Shared Object lock?
Hi, Is it possible to lock a shared object for client updates? It would be a misapplication BUT the thing is that shared objects have a real fast sync time with the clients. In my case i need to syncronize values like state of user, streamname, name and icon. An easy solution would be to sum that up in a shared Object, because all information is public. The problem. A shared object is accessible AND also editable by users. Is there a simple fine secure solution with anything other than a shared object or can i prevent the client from changing the object? Ive read the sourcecode of the vidchat of red5 but want another solution if its possible. mfg nomIad ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org