[Red5] can I download the java source: Red5 Digest, Vol 4, Issue 20
sobluesky
sobluesky at 163.com
Wed Dec 7 09:21:24 EST 2005
If so, how?
thanks
-----ÓʼþÔ¼þ-----
·¢¼þÈË: Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] ´ú±í
Red5-request at osflash.org
·¢ËÍʱ¼ä: 2005Äê12ÔÂ7ÈÕ 21:35
ÊÕ¼þÈË: Red5 at osflash.org
Ö÷Ìâ: Red5 Digest, Vol 4, Issue 20
Send Red5 mailing list submissions to
Red5 at osflash.org
To subscribe or unsubscribe via the World Wide Web, visit
http://osflash.org/mailman/listinfo/red5_osflash.org
or, via email, send a message with subject or body 'help' to
Red5-request at osflash.org
You can reach the person managing the list at
Red5-owner at osflash.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Red5 digest..."
Today's Topics:
1. Re: Making a GenericApplication (Dominick Accattato)
2. why not using java as server side language?? Red5 Digest, Vol
4, Issue 3 (sobluesky)
----------------------------------------------------------------------
Message: 1
Date: Wed, 7 Dec 2005 06:48:14 -0500
From: Dominick Accattato <daccattato at gmail.com>
Subject: Re: [Red5] Making a GenericApplication
To: Red5 at osflash.org
Message-ID:
<4b973c290512070348u1405ae5fhcc88352849bca5cd at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
don't worry yourself too much with the handshakes being too small.
1) Why I don't see "-- onConnect" in the logs ?
the onConnect method is never called in the initialize method (only
onAppStart):
public final void initialize(){
log.debug("Calling onAppStart");
onAppStart();
}
2) How can I do to change the debug level (show debug logs) ?
You can change debug levels by modifying the conf/log.properties file
3) I need to used call() services to call method of the into the Flash
> plugin (vice & versa), I have see a Call.java in server/services/ is it
> possible to do a extends of BaseApplication AND to implements Call.java at
> the same time ?
Ok, this part you wont have to deal with. The call code is done under the
cover. Instead we would call a Client object or something. We haven't
tried calling a client side method yet. I'm sure this will come.
4) Is it really limited to make server side code in JavaScript ? I need to
> do webcam streaming & call from client <=> server
No its not limited in theory anyway. Yes many parts haven't been
implemented but what we have done so far are:
client side calls a server side method and the method returns results
client side calls a flv to be streamed
client side publishes a steam (video)
client side subscribes to a stream
shared objects are being worked on.
Serverside api's need to be worked on.
5) Do you want I commit this GenericApplication with a simple example of
> Flash document to make a proper base of coding application server side ?
Not sure if we need this yet. You see, you loaded the Generic application
through the app.xml. However, all applications load a Base Application
anyway so I'm not sure you need to do this at all. The app.xml may be only
if you need to extend the application at runtime through java. I'll check
that out. Keep pushing the envelope though.
Dominick Accattato, CTO
New View Networks
www.newviewnetworks.com
On 12/7/05, Guillaume Lecanu <Guillaume at lya.fr> wrote:
>
> I have more informations about the problem of onConnect() / onDisconnect()
>
>
> When I make the connection (connection is success), I see this logs :
>
> [java] [WARN] 261136 IoThreadPool-1:( ProtocolDecoder.decode ) New
> buffer
> [java] [WARN] 261137 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake init too small, buffering
> [java] [WARN] 261139 IoThreadPool-1:( ProtocolDecoder.doDecode )
> remaining: 256
> [java] [WARN] 261140 IoThreadPool-3:( ProtocolDecoder.doDecode )
> Handshake init too small, buffering
> [java] [WARN] 261140 IoThreadPool-3:( ProtocolDecoder.doDecode )
> remaining: 512
> [java] [WARN] 261142 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake init too small, buffering
> [java] [WARN] 261143 IoThreadPool-1:( ProtocolDecoder.doDecode )
> remaining: 768
> [java] [WARN] 261143 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake init too small, buffering
> [java] [WARN] 261144 IoThreadPool-1:( ProtocolDecoder.doDecode )
> remaining: 1024
> [java] [WARN] 261144 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake init too small, buffering
> [java] [WARN] 261144 IoThreadPool-1:( ProtocolDecoder.doDecode )
> remaining: 1280
> [java] [WARN] 261145 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake init too small, buffering
> [java] [WARN] 261145 IoThreadPool-1:( ProtocolDecoder.doDecode )
> remaining: 1536
> [java] [WARN] 261159 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake reply too small, buffering
> [java] [WARN] 261160 IoThreadPool-3:( ProtocolDecoder.doDecode )
> Handshake reply too small, buffering
> [java] [WARN] 261162 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake reply too small, buffering
> [java] [WARN] 261163 IoThreadPool-3:( ProtocolDecoder.doDecode )
> Handshake reply too small, buffering
> [java] [WARN] 261164 IoThreadPool-1:( ProtocolDecoder.doDecode )
> Handshake reply too small, buffering
>
>
> Anybody have an idea ?
>
> Thanks
>
>
> Le mercredi 07 d?cembre 2005 ? 10:54 +0100, Guillaume Lecanu a ?crit :
>
> Hi :-)
>
> I search a way to easily develop server side code (in Java because in
> JavaScript you have said it's not yet ready)
>
> I have created a GenericApplication.java in my src/server/context/
> The goal is to have all actions possible into this GenericApplication file
> (webcam streaming, VOD, Call methods.. etc)
>
> So, I have extended BaseApplication to support webcam streaming and to
> have the 3 basic functions onAppStart() onConnect() and onDisconnect().
>
> The code of GenericApplication.java :
>
>
----------------------------------------------------------------------------
----------------------------------------------------------------------
> package org.red5.server.context;
>
> public class GenericApplication extends BaseApplication {
>
> public void onAppStart(){
> log.info("-- onAppStart");
> }
>
> public boolean onConnect(Client conn, List params){
> log.info("-- onConnect");
> return true;
> }
>
> public void onDisconnect(Client conn){
> log.info("-- onDisconnect");
> }
> }
>
>
----------------------------------------------------------------------------
----------------------------------------------------------------------
>
> And his app.xml into my hosts/__default__/apps/GenericApplication/app.xml
> :
>
>
----------------------------------------------------------------------------
----------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
> http://www.springframework.org/dtd/spring-beans.dtd">
> <beans>
> <bean id="GenericApplication" class="
> org.red5.server.context.GenericApplication" init-method="initialize"/>
>
> </beans>
>
>
----------------------------------------------------------------------------
----------------------------------------------------------------------
>
> The server seems to works, I can see in the logs :
> [java] [INFO] 521 main:( DefaultListableBeanFactory.getBean )
> Creating shared instance of singleton bean 'GenericApplication'
> [java] [INFO] 525 main:( BaseApplication.onAppStart ) -- onAppStart
>
> But when I try to connect to rtmp://127.0.0.1:1936/GenericApplication
> I don't see any logs about onConnect() or onDisconnect() ... :'(
>
> The initialize() method call onConnect() into the BaseApplication class :
>
> public final void initialize(){ log.debug("Calling
onAppStart"); onAppStart(); }
>
>
> So my questions :
>
> 1) Why I don't see "-- onConnect" in the logs ?
>
> 2) How can I do to change the debug level (show debug logs) ?
>
> 3) I need to used call() services to call method of the into the Flash
> plugin (vice & versa), I have see a Call.java in server/services/ is it
> possible to do a extends of BaseApplication AND to implements Call.java at
> the same time ?
>
> 4) Is it really limited to make server side code in JavaScript ? I need to
> do webcam streaming & call from client <=> server
>
> 5) Do you want I commit this GenericApplication with a simple example of
> Flash document to make a proper base of coding application server side ?
>
>
>
>
> _______________________________________________Red5 mailing
listRed5 at osflash.orghttp://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osflash.org/pipermail/red5_osflash.org/attachments/20051207/64d946e9/
attachment-0001.htm
------------------------------
Message: 2
Date: Wed, 7 Dec 2005 21:35:02 +0800
From: "sobluesky" <sobluesky at 163.com>
Subject: [Red5] why not using java as server side language?? Red5
Digest, Vol 4, Issue 3
To: <Red5 at osflash.org>
Message-ID:
<mailman.771.1133962510.12493.red5_osflash.org at osflash.org>
Content-Type: text/plain; charset="gb2312"
Red5 is exciting, mostly because fcs serverside script sucks so much;
With fcs u can't reach database, u can't oop, u can't even debug step by
step;
Why does red5 have to be a copy of a sucking stuff??
Why can't red5 a realtime server, not only provide streaming service, but
also realtime data sync server??
Why do red5 have to use a script??
-----????????-----
??????: Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] ????
Red5-request at osflash.org
????????: 2005??12??2?? 22:10
??????: Red5 at osflash.org
????: Red5 Digest, Vol 4, Issue 3
Send Red5 mailing list submissions to
Red5 at osflash.org
To subscribe or unsubscribe via the World Wide Web, visit
http://osflash.org/mailman/listinfo/red5_osflash.org
or, via email, send a message with subject or body 'help' to
Red5-request at osflash.org
You can reach the person managing the list at
Red5-owner at osflash.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Red5 digest..."
Today's Topics:
1. Re: Server down? (Dominick Accattato)
2. Re: How to make Server Side script ? (Dominick Accattato)
3. Re: How to make Server Side script ?
(Luke Hubbard (luke at codegent.com))
----------------------------------------------------------------------
Message: 1
Date: Fri, 2 Dec 2005 08:59:40 -0500
From: Dominick Accattato <daccattato at gmail.com>
Subject: Re: [Red5] Server down?
To: Red5 at osflash.org
Message-ID:
<4b973c290512020559l430fb5fcw8975f0279fcd532b at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Claudio:
At the moment, my shared hosting solution has a coldfusion mapping
problem and my mapping keeps getting overwritten, so I've just been patching
it when it goes down, eventually I'm gonna have to choose a different name
for the mapping and see if it doesn't get overwritten. All I can think is
that there is another coldfusion developer out there using blogCFC and using
the same mapping.
Chris thanks for missing me! I have been steady reading my spring,
hibernate and java 5 books.
When you guys first started this whole thing, I wasn't on board yet, and it
took quite a lot of effort to learn all those new concepts (spring,
threadlocal, rtmp, amf). I was able to read my way through and ask for
explanations from Luke, but nevertheless I was always one block of code
behind. So on the next wave, I think I'll be riding up in front with the
rest of ya!
Red5, via la dolce!
On 12/1/05, John Grden <neoriley at gmail.com> wrote:
>
> yeah, I was able to get there ok, thanks for asking though, appreciate the
> heads up
>
> On 12/1/05, Claudio Erba - Docebo.com <http://docebo.com/> <
> lists at docebo.com> wrote:
> >
> > John Grden wrote:
> >
> > > huh?
> > > you mean www.osflash.org <http://www.osflash.org> is down?
> >
> >
> > No John, i mean the dominick blog
> >
> > http://www.newviewnetworks.com/nvnhome/blog/client/
> >
> > But now seems ok
> > Claudio
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
>
>
> --
> John Grden - Blitz
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osflash.org/pipermail/red5_osflash.org/attachments/20051202/76207898/
attachment-0001.htm
------------------------------
Message: 2
Date: Fri, 2 Dec 2005 09:04:14 -0500
From: Dominick Accattato <daccattato at gmail.com>
Subject: Re: [Red5] How to make Server Side script ?
To: luke at codegent.com, Red5 at osflash.org
Message-ID:
<4b973c290512020604u2c70454cud411a6ec80c44826 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
its true that those lifecycle evens are in place. I would have to learn
more about Rhino scripting, but wouldn't we have to implement a trace
function in java for it to be available to the scripting version. So in
other words, we still have to define the api in java for them to be
available to the scripting environment.
regards
Dominick Accattato
On 12/2/05, Luke Hubbard (luke at codegent.com) <king.selassie at gmail.com>
wrote:
>
> Hi,
>
> Ok, what was the question again. sorry a little frantic today. Have
> written soo many emails.
> I know js script work because we tested them with the echo service but I
> have not added to them since.
> Since then we added a BaseApplication object which you can extend to have
> onApplicationStart, etc called.
> In theory it should just be a matter of extending that object with in the
> script and overriding methods.
> However none of this has been tested, and the whole application lifecycle
> is still under consideration.
> Is it best to do it through inheritance or via some lifecycle interface?
> Right now im thinking lifecycle interface.
> I will try to add some application examples to the next release. Both java
> and javascript.
>
> -- Luke
>
>
> On 12/2/05, Guillaume Lecanu < Guillaume at lya.fr> wrote:
> >
> > Le vendredi 02 d?cembre 2005 ? 07:37 -0500, John Grden a ?crit :
> >
> > That's a good question that either Luke or Chris might be able to answer
> > ;)
> >
> > I hope Chris isn't go back in the real world like Luke ;-)
> >
> >
> > I've not tried it myself
> >
> > ok
> >
> > Chirssssss ? :)
> >
> >
> > On 12/2/05, *Guillaume Lecanu* < Guillaume at lya.fr> wrote:
> >
> > Hi,
> >
> > I'm currently using the SVN version of Red5.
> > I try to make interaction between the Flash client to the Red5 server.
> > I have putted in the app.xml (beans) :
> >
> > <bean id="demoService" class="org.red5.server.service.DemoService"
> > singleton="true" />
> > <bean id="scriptBeanFactory" class="
> > org.red5.server.script.ScriptBeanFactory" singleton="true"
> > init-method="startup">
> > <property name="path"><value>./</value></property>
> > </bean>
> >
> > But I'm searching a way to have a similar way of the FlashComm Server
> > main.asc :
> >
> > application.onAppStart = function()
> > {
> > trace("******** onAppStart");
> > }
> >
> > application.onConnect = function(client)
> > {
> > trace("********* onConnect");
> > }
> >
> > application.onDisconnect = function(client)
> > {
> > trace("********** onDisconnect");
> > }
> >
> > I have see somes functions in your examples
> > scriptDemo/scriptServiceFCS.js
> >
> > So I supposed I need to rename my main.asc to scriptServiceFCS.js ?
> >
> > But no trace appears in the Red5 output..
> >
> > The goal is to save the client parameters to make somes .call()
> > functions after, is it already possible ?
> >
> > Thanks a lots ! :)
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
> >
> >
> >
> > --
> > John Grden - Blitz
> >
> > _______________________________________________Red5 mailing
listRed5 at osflash.orghttp://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osflash.org/pipermail/red5_osflash.org/attachments/20051202/f3c72ebe/
attachment-0001.htm
------------------------------
Message: 3
Date: Fri, 2 Dec 2005 21:09:43 +0700
From: "Luke Hubbard (luke at codegent.com)" <king.selassie at gmail.com>
Subject: Re: [Red5] How to make Server Side script ?
To: red5 at osflash.org
Message-ID:
<510e752b0512020609o4b9d7ep64a5526171a288d7 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Darn reply to all. Watch it gmail, im gonna have to call in the
greasemonkey.
On 12/2/05, Luke Hubbard (luke at codegent.com) <king.selassie at gmail.com>
wrote:
>
> Oh.. simple :)
>
> Just use print instread of trace that works.
> Or put something like this in there.
>
> function trace(msg){ print(msg); };
>
> We will work on a server side api which will be expose in javascript.
> At the moment the only custom object is meta which is used for generating
> interfaces.
> Im looking at JavaFlash now, as the guy also uses Rhino.
> Perhaps the api is something we could work on together as projects.
>
> -- Luke
>
>
> On 12/2/05, Dominick Accattato <daccattato at gmail.com> wrote:
> >
> > its true that those lifecycle evens are in place. I would have to learn
> > more about Rhino scripting, but wouldn't we have to implement a trace
> > function in java for it to be available to the scripting version. So in
> > other words, we still have to define the api in java for them to be
> > available to the scripting environment.
> >
> > regards
> > Dominick Accattato
> >
> >
> > On 12/2/05, Luke Hubbard (luke at codegent.com) < king.selassie at gmail.com>
> > wrote:
> > >
> > > Hi,
> > >
> > > Ok, what was the question again. sorry a little frantic today. Have
> > > written soo many emails.
> > > I know js script work because we tested them with the echo service but
> > > I have not added to them since.
> > > Since then we added a BaseApplication object which you can extend to
> > > have onApplicationStart, etc called.
> > > In theory it should just be a matter of extending that object with in
> > > the script and overriding methods.
> > > However none of this has been tested, and the whole application
> > > lifecycle is still under consideration.
> > > Is it best to do it through inheritance or via some lifecycle
> > > interface? Right now im thinking lifecycle interface.
> > > I will try to add some application examples to the next release. Both
> > > java and javascript.
> > >
> > > -- Luke
> > >
> > >
> > > On 12/2/05, Guillaume Lecanu < Guillaume at lya.fr > wrote:
> > > >
> > > > Le vendredi 02 d?cembre 2005 ? 07:37 -0500, John Grden a ?crit :
> > > >
> > > > That's a good question that either Luke or Chris might be able to
> > > > answer ;)
> > > >
> > > > I hope Chris isn't go back in the real world like Luke ;-)
> > > >
> > > >
> > > > I've not tried it myself
> > > >
> > > > ok
> > > >
> > > > Chirssssss ? :)
> > > >
> > > >
> > > > On 12/2/05, *Guillaume Lecanu* < Guillaume at lya.fr> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I'm currently using the SVN version of Red5.
> > > > I try to make interaction between the Flash client to the Red5
> > > > server.
> > > > I have putted in the app.xml (beans) :
> > > >
> > > > <bean id="demoService" class="
> > > > org.red5.server.service.DemoService" singleton="true" />
> > > > <bean id="scriptBeanFactory" class="
> > > > org.red5.server.script.ScriptBeanFactory" singleton="true"
> > > > init-method="startup">
> > > > <property name="path"><value>./</value></property>
> > > > </bean>
> > > >
> > > > But I'm searching a way to have a similar way of the FlashComm
> > > > Server main.asc :
> > > >
> > > > application.onAppStart = function()
> > > > {
> > > > trace("******** onAppStart");
> > > > }
> > > >
> > > > application.onConnect = function(client)
> > > > {
> > > > trace("********* onConnect");
> > > > }
> > > >
> > > > application.onDisconnect = function(client)
> > > > {
> > > > trace("********** onDisconnect");
> > > > }
> > > >
> > > > I have see somes functions in your examples
> > > > scriptDemo/scriptServiceFCS.js
> > > >
> > > > So I supposed I need to rename my main.asc to scriptServiceFCS.js ?
> > > >
> > > > But no trace appears in the Red5 output..
> > > >
> > > > The goal is to save the client parameters to make somes .call()
> > > > functions after, is it already possible ?
> > > >
> > > > Thanks a lots ! :)
> > > >
> > > >
> > > > _______________________________________________
> > > > Red5 mailing list
> > > > Red5 at osflash.org
> > > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > John Grden - Blitz
> > > >
> > > > _______________________________________________Red5 mailing
listRed5 at osflash.orghttp://osflash.org/mailman/listinfo/red5_osflash.org
> > > >
> > > >
> > > > _______________________________________________
> > > > Red5 mailing list
> > > > Red5 at osflash.org
> > > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > > >
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osflash.org/pipermail/red5_osflash.org/attachments/20051202/2263b8bc/
attachment.htm
------------------------------
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
End of Red5 Digest, Vol 4, Issue 3
**********************************
------------------------------
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
End of Red5 Digest, Vol 4, Issue 20
***********************************
More information about the Red5
mailing list