Example #1
0
        //------------------------------------------------------------------------------------------------------------------------

        public SimpleActionResult Connect(string server, string videotoken, int Port = 5969, bool SecureYPC = false)
        {
            //start a YPclient
            DebugEx.TraceLog("Connect mic client to mic server");
            this.videotoken = videotoken;
            //create protocol
            var proto = new YPChannel.Protocol()
            {
                Version             = 1,
                ProtocolDefinitions = new List <Protocol.MessageTypeGroup>()
                {
                    new Protocol.MessageTypeGroup()
                    {
                        GroupName = Yodiwo.API.MediaStreaming.Video.ApiGroupName, MessageTypes = Yodiwo.API.MediaStreaming.Video.ApiMessages
                    }
                },
            };

            //create channel
            yclient = new Yodiwo.YPChannel.Transport.Sockets.Client(proto)
            {
                Name = "VideoMediaClient"
            };
            yclient.OnMessageReceived += clientOnMessageReceived;
            return(yclient.Connect(server, Port, SecureYPC, "*.yodiwo.com"));
        }
Example #2
0
        //------------------------------------------------------------------------------------------------------------------------

        public SimpleActionResult Connect(string server, string videotoken, int Port = 5969, bool SecureYPC = false)
        {
            //start a YPclient
            DebugEx.TraceLog("Connect mic client to mic server");
            this.videotoken = videotoken;
            //create protocol
            var proto = new YPChannel.Protocol()
            {
                Version = 1,
                ProtocolDefinitions = new List<Protocol.MessageTypeGroup>()
                    {
                        new Protocol.MessageTypeGroup() {GroupName=Yodiwo.API.MediaStreaming.Video.ApiGroupName, MessageTypes=Yodiwo.API.MediaStreaming.Video.ApiMessages }
                    },
            };
            //create channel
            yclient = new Yodiwo.YPChannel.Transport.Sockets.Client(proto) { Name = "VideoMediaClient" };
            yclient.OnMessageReceived += clientOnMessageReceived;
            return yclient.Connect(server, Port, SecureYPC, "*.yodiwo.com");
        }