public void TestVideoDataParam()
        {
            VideoDataParam param  = new VideoDataParam(new VideoInfo("video", 2), new DateTime(2016, 5, 5));
            var            buffer = VideoDataParam.Encode(param);
            VideoDataParam param2 = VideoDataParam.Decode(buffer);

            Assert.AreEqual(param.VideoId, param2.VideoId);
            Assert.AreEqual(param.StreamId, param2.StreamId);
            Assert.AreEqual(param.Time, param2.Time);
        }
 public void GetVideoStream(VideoDataParam param)
 {
     sendData((int)ParamCode.VideoPacket, VideoDataParam.Encode(param));
 }
Beispiel #3
0
 public void GetVideoData(VideoDataParam param)
 {
     Send((int)ParamCode.VideoPacket, VideoDataParam.Encode(param));
 }