
|
Event-trigger flex update
Hi,
What I would like to do is a Red5 application that can listen on a specific port for incoming event message and then update the flex front-end when certain event is received. Is it something that I can do with Red5 or is there other simply way to do it ?
One solution I can think of is to have a Red5 application to listen on a remote port and wait for the event to be received. Once an event is received, the application can call a front-end flex method to change the front-end UI.
I think it is do-able, but I am new to Red5. Is it a good idea to use Red5 for this purpose?
Thank you for your suggestion.
Regards,
JB
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Event-trigger flex update

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Yes,
Create a new member of your red5 application
of type PortHandler or whatever.
Create a new method on your red5 application which
calls the clients with the info you need.
Now,create the port handler...
Create java class that listens on the
port.
THis port handler class has data member
ApplicationAdapter.
When constructing your Port handler, set the data
member to your red5 application.
When your port handler receives a connection on its
port, it will call
ApplicationAdapter.methodForCallingClients();
Andy
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:14
AM
Subject: [Red5] Event-trigger flex
update
Hi,
What I would like to do is a Red5 application that can listen
on a specific port for incoming event message and then update the flex
front-end when certain event is received. Is it something that I can do
with Red5 or is there other simply way to do it ?
One solution I can think of is to have a Red5 application to listen on a
remote port and wait for the event to be received. Once an event is
received, the application can call a front-end flex method to change the
front-end UI.
I think it is do-able, but I am new to Red5. Is it a good idea to
use Red5 for this purpose?
Thank you for your suggestion.
Regards,
JB
_______________________________________________ Red5 mailing
list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Event-trigger flex update
Hi Andy,
Thank you for the info. Is this PortHandler just a generic java class of it needs to be extended from another Red5 class? How do I register this PortHandler with Red5 so that it runs with Red5 server instead of as part of an Red5 application? It would be quite helpful if there is an example showing how to do it.
Essentially, I only need one instance of PortHandler running to listen on an external port and trigger a list of listeners( or Red5 application) when event is received. Red5 Application can subscribe on the event as needed.
Thanks alot for your help.
JB
On Wed, Jul 23, 2008 at 12:16 AM, Andy Shaules < bowljoman@...> wrote:
Yes,
Create a new member of your red5 application of type PortHandler or whatever.
Create a new method on your red5 application which calls the clients with the info you need.
Now,create the port handler...
Create java class that listens on the port.
THis port handler class has data member ApplicationAdapter.
When constructing your Port handler, set the data member to your red5 application.
When your port handler receives a connection on its port, it will call
ApplicationAdapter.methodForCallingClients();
Andy
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:14 AM
Subject: [Red5] Event-trigger flex update
Hi,
What I would like to do is a Red5 application that can listen on a specific port for incoming event message and then update the flex front-end when certain event is received. Is it something that I can do with Red5 or is there other simply way to do it ?
One solution I can think of is to have a Red5 application to listen on a remote port and wait for the event to be received. Once an event is received, the application can call a front-end flex method to change the front-end UI.
I think it is do-able, but I am new to Red5. Is it a good idea to use Red5 for this purpose?
Thank you for your suggestion.
Regards,
JB
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Event-trigger flex update

Some parts of this message have been removed.
Learn more about Nabble's security policy.
You will have to write the port handler your self.
I just outlined how you would achieve your goal. It does not exist.
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:18
PM
Subject: Re: [Red5] Event-trigger flex
update
Hi Andy,
Thank you for the info. Is this PortHandler just a generic java
class of it needs to be extended from another Red5 class? How do I
register this PortHandler with Red5 so that it runs with Red5 server instead
of as part of an Red5 application? It would be quite helpful if
there is an example showing how to do it.
Essentially, I only need one instance of PortHandler running to listen on
an external port and trigger a list of listeners( or Red5 application)
when event is received. Red5 Application can subscribe on the event as
needed.
Thanks alot for your help.
JB
On Wed, Jul 23, 2008 at 12:16 AM, Andy Shaules < bowljoman@...> wrote:
Yes,
Create a new member of your red5
application of type PortHandler or whatever.
Create a new method on your red5 application
which calls the clients with the info you need.
Now,create the port handler...
Create java class that listens on the
port.
THis port handler class has data member
ApplicationAdapter.
When constructing your Port handler, set the
data member to your red5 application.
When your port handler receives a connection on
its port, it will call
ApplicationAdapter.methodForCallingClients();
Andy
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:14
AM
Subject: [Red5] Event-trigger flex
update
Hi,
What I would like to do is a Red5 application that can
listen on a specific port for incoming event message and then update the
flex front-end when certain event is received. Is it something that
I can do with Red5 or is there other simply way to do it ?
One solution I can think of is to have a Red5 application to listen
on a remote port and wait for the event to be received. Once an
event is received, the application can call a front-end flex method to
change the front-end UI.
I think it is do-able, but I am new to Red5. Is it a good idea
to use Red5 for this purpose?
Thank you for your suggestion.
Regards,
JB
_______________________________________________ Red5 mailing
list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5
mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing
list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Event-trigger flex update
Hi Any,
After I write the PortHandler, how do I register it with Red5, so that it can start when Red5 starts? Also, how can the application instances be able to access to this PortHandler to become a listener of events triggered by PortHandler?
Thanks alot for all the help.
JB
On Wed, Jul 23, 2008 at 10:51 AM, Andy Shaules < bowljoman@...> wrote:
You will have to write the port handler your self. I just outlined how you would achieve your goal. It does not exist.
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:18 PM
Subject: Re: [Red5] Event-trigger flex update
Hi Andy,
Thank you for the info. Is this PortHandler just a generic java class of it needs to be extended from another Red5 class? How do I register this PortHandler with Red5 so that it runs with Red5 server instead of as part of an Red5 application? It would be quite helpful if there is an example showing how to do it.
Essentially, I only need one instance of PortHandler running to listen on an external port and trigger a list of listeners( or Red5 application) when event is received. Red5 Application can subscribe on the event as needed.
Thanks alot for your help.
JB
On Wed, Jul 23, 2008 at 12:16 AM, Andy Shaules < bowljoman@...> wrote:
Yes,
Create a new member of your red5 application of type PortHandler or whatever.
Create a new method on your red5 application which calls the clients with the info you need.
Now,create the port handler...
Create java class that listens on the port.
THis port handler class has data member ApplicationAdapter.
When constructing your Port handler, set the data member to your red5 application.
When your port handler receives a connection on its port, it will call
ApplicationAdapter.methodForCallingClients();
Andy
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:14 AM
Subject: [Red5] Event-trigger flex update
Hi,
What I would like to do is a Red5 application that can listen on a specific port for incoming event message and then update the flex front-end when certain event is received. Is it something that I can do with Red5 or is there other simply way to do it ?
One solution I can think of is to have a Red5 application to listen on a remote port and wait for the event to be received. Once an event is received, the application can call a front-end flex method to change the front-end UI.
I think it is do-able, but I am new to Red5. Is it a good idea to use Red5 for this purpose?
Thank you for your suggestion.
Regards,
JB
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list Red5@...http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Event-trigger flex update
Message
hello, I have never tried to create a static
class as a data member of red5, but that how I would make the handler accesable
from all aplications.
Your applications should call a method on
your handler to add themselves to an array of 'Application' references which the
handler will call.
For each ref in collection, call
application.method(params);
And I would also add a static method to red5
similar to red5.GetConnetion except it would be
Red5.getHandler().registerApp(this);
Hi Any,
After I write the PortHandler, how do I register it with Red5, so that it
can start when Red5 starts? Also, how can the application instances be
able to access to this PortHandler to become a listener of events triggered by
PortHandler?
Thanks alot for all the help.
JB
On Wed, Jul 23, 2008 at 10:51 AM, Andy Shaules < bowljoman@...> wrote:
You will have to write the port handler your
self. I just outlined how you would achieve your goal. It does not
exist.
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:18
PM
Subject: Re: [Red5] Event-trigger
flex update
Hi Andy,
Thank you for the info. Is this PortHandler just a generic java
class of it needs to be extended from another Red5 class? How do I
register this PortHandler with Red5 so that it runs with Red5 server
instead of as part of an Red5 application? It would be quite
helpful if there is an example showing how to do it.
Essentially, I only need one instance of PortHandler running to
listen on an external port and trigger a list of listeners( or Red5
application) when event is received. Red5 Application can subscribe
on the event as needed.
Thanks alot for your help.
JB
On Wed, Jul 23, 2008 at 12:16 AM, Andy Shaules
< bowljoman@...> wrote:
Yes,
Create a new member of your red5
application of type PortHandler or whatever.
Create a new method on your red5
application which calls the clients with the info you need.
Now,create the port handler...
Create java class that listens on the
port.
THis port handler class has data member
ApplicationAdapter.
When constructing your Port handler, set
the data member to your red5 application.
When your port handler receives a
connection on its port, it will call
ApplicationAdapter.methodForCallingClients();
Andy
----- Original Message -----
Sent: Tuesday, July 22, 2008 7:14
AM
Subject: [Red5] Event-trigger
flex update
Hi,
What I would like to do is a Red5 application that can
listen on a specific port for incoming event message and then update
the flex front-end when certain event is received. Is it
something that I can do with Red5 or is there other simply way to do
it ?
One solution I can think of is to have a Red5 application to
listen on a remote port and wait for the event to be received.
Once an event is received, the application can call a front-end flex
method to change the front-end UI.
I think it is do-able, but I am new to Red5. Is it a good
idea to use Red5 for this purpose?
Thank you for your suggestion.
Regards,
JB
_______________________________________________ Red5 mailing
list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5
mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing
list Red5@...http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5
mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Event-trigger flex update
Hi Andy,
When I have the static class developed, is it possible that I can somehow register it with Red5 so that it gets started along with the Red5 instance?
Thanks for your advice.
JB
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Event-trigger flex update
Message
Have red5 construct the object, in its
declaration.
public static Handler handler=new Handler();
Your class should be able to go from there.
It might be a good Idea to try to add a
simple integer variable to red5 and attempt to access it in this
manner.
It may also be simpler just to write a
normal class object to interface with a single app, if you have trouble with the
static variable.
Hi Andy,
When I have the static class developed, is it possible that I can somehow
register it with Red5 so that it gets started along with the Red5
instance?
Thanks for your advice.
JB
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|