public FormWatchStream()
 {
     InitializeComponent();
     _streamServer              = ServerInfo.StreamServer;
     _udpClient                 = new UDPClient.UDPClient();
     _udpClient.NewDataReceive += _udpClient_NewDataReceive;
     _udpClient.RequestStartStream("abc", _streamServer);
 }
 public FormWatchStream(ClientSocket.IClient client, string streamId)
 {
     _client       = client;
     _streamID     = streamId;
     _streamServer = ServerInfo.StreamServer;
     _udpClient    = new UDPClient.UDPClient();
     _udpClient.Receive();
     _udpClient.NewDataReceive += _udpClient_NewDataReceive;
     _udpClient.RequestStartStream(_streamID, _streamServer);
     InitializeComponent();
 }
Beispiel #3
0
        public FormLiveStream(IClient client, string streamID)
        {
            _client       = client;
            _streamClient = new UDPClient.UDPClient();
            _streamID     = streamID;

            _mediaStream.OnVideoNewFrame += _mediaStream_OnVideoNewFrame;
            _mediaStream.StartVideo(_mediaStream.GetDefaultCamera().MonikerString);
            _mediaStream.RecordAudio(_mediaStream.GetDefaultMicrophone());
            _mediaStream.StartAudio(_mediaStream.GetDefaultSpeaker());

            InitializeComponent();

            _streamClient.RequestStartStream(_streamID, _serverAddress);
        }