public void HeightTest()
 {
     TargettedVideo target = new TargettedVideo(); // TODO: Initialize to an appropriate value
     double expected = 0F; // TODO: Initialize to an appropriate value
     double actual;
     target.Height = expected;
     actual = target.Height;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void TargettedVideoConstructorTest()
 {
     TargettedVideo target = new TargettedVideo();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
 public void videoTest()
 {
     TargettedVideo target = new TargettedVideo(); // TODO: Initialize to an appropriate value
     Video expected = null; // TODO: Initialize to an appropriate value
     Video actual;
     target.video = expected;
     actual = target.video;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Beispiel #4
0
        public void SendVideo(TargettedVideo video)
        {
            Trace.TraceInformation("Beginning Video send: " + video.id);
            Action work = delegate
            {
                video.adoptCache(cache, server);
                video.videoProperty.Dispatcher.adoptAsync(() =>
                {
                    var selectedImage = video.video;
                    selectedImage.VideoSource = cache.RemoteSource(selectedImage.VideoSource);
                    video.video = selectedImage;

                    wire.SendVideo(video);
                });
            };
            tryIfConnected(work);
        }
 void IReceiveEvents.receiveVideo(TargettedVideo tv)
 {
     VideoAvailable(this, new VideoAvailableEventArgs { video = tv });
 }
 public Video(TargettedVideo video)
     : this()
 {
     this.Vid = video;
 }
 private void ReceiveVideo(TargettedVideo video)
 {
     video.video.MediaElement.LoadedBehavior = MediaState.Manual;
     video.video.MediaElement.ScrubbingEnabled = true;
     AddVideo(video.video);
 }