Next Page

Page: 1

Previous Page

Thread: Republish in another server-application by the client

Created on: 02/05/10 07:43 AM

Replies: 3

Arvit





Joined: 09/30/09

Posts: 16

Republish in another server-application by the client
02/05/10 7:43 AM

Hey everybody,

i have a simple question.

Ist it possible to get a stream from a server-app A and (re)publish it in another server-app B. Not in another instance.


Thank for any response!


Arvit

Link | Top | Bottom

VincentMeens





Joined: 02/01/10

Posts: 33

RE: Republish in another server-application by the client
02/06/10 4:42 AM

Hello Arvit,


yes this can be done, if it is because of load balancing/distribution you might want to look up the native origin/edge setups.


If you want to do it manually, then you need to republish the stream on the server side to your B server with the server side "NetConnection" and "NetStream" classes, pretty much like you do on the client side. More information and examples can be found in the documentation http://help.adobe.com/en_US/FlashMediaServer/3.5_SS_ASD/WS5b3ccc516d4fbf351e63e3d11a11aff5ba-7d13.html or use the "ProxyStream" class (FMS 3.5) also found in the documentation http://help.adobe.com/en_US/FlashMediaServer/3.5_SS_ASD/WSA9A478FD-0254-4161-867B-47B64CD15907.html

Link | Top | Bottom

Arvit





Joined: 09/30/09

Posts: 16

RE: Republish in another server-application by the client
02/08/10 3:02 AM

Hey VincentMeens,


first thanks for your response but i try to fetch a stream without netstream.publish-methods. In these case my application B conntected to another A and it only has the streamname and the url of the application A.

For example:

App A:

apllication.onAppStart= funtion() {

clientstream = Stream.get("new_stream");

}

apllication.onPublish = funtion(clientObj, streamObj)

{
clientStream.play(streamObj.name);
}

App b

apllication.onAppStart= funtion() {

var nc = new NetConnection;
nc.connect("rtmp://localhost/App_A");
var ns = new NetStream(nc);

capturestream = Stream.get("new_stream");

capturestream.play("new_stream", -1);

}


this code dont work
Thanks a lot for any solutions,

Arvit

Link | Top | Bottom

VincentMeens





Joined: 02/01/10

Posts: 33

RE: Republish in another server-application by the client
02/08/10 7:24 AM

Ok, I understand, but in your example it's the wrong way around. In your example you stream from A locally to A and try to connect from B to A. This indeed won't work.


Instead on A you should use the "NetConnection" and "NetStream" to connect and publish to B. And B clients can then connect to the stream as if it were a normal stream.

Link | Top | Bottom

New Post

Please login to post a response.