2

FluorineFxRTMPサービスに接続する.NETコンシューマクライアントを作成しようとしています。Flexコンシューマークライアントの作成は非常に簡単でした。.NETでも同じものを作成したいと思います。

(言い換えると、MessageAdapterをMessageAdapterに接続する方法は?)

どうもありがとう、

ドゥディ

4

1 に答える 1

2

I'm using the NetConnection object and works fine for me. Check the documentation page:

using FluorineFx.Net;
...
NetConnection netConnection = new NetConnection();
netConnection.OnConnect += new ConnectHandler(netConnection_OnConnect);
netConnection.NetStatus += new NetStatusHandler(netConnection_NetStatus);
netConnection.Connect("rtmp://localhost:1935/HelloWorld");
...
void netConnection_OnConnect(object sender, EventArgs e)
{
    //The NetConnection object is connected now
    netConnection.Call("serverHelloMsg", new ServerHelloMsgHandler(), "some text");
}
...
void netConnection_NetStatus(object sender, NetStatusEventArgs e)
{
    string level = e.Info["level"] as string;
}
...
//Our result handler object
public class ServerHelloMsgHandler : IPendingServiceCallback
{
    public void ResultReceived(IPendingServiceCall call)
    {
        object result = call.Result;
    }
}
于 2010-02-23T16:56:34.383 に答える