예제 #1
0
파일: Video.cs 프로젝트: afrog33k/eAd
 public Video(RegionOptions options) : base(options.Width, options.Height, options.Top, options.Left)
 {
     this.filePath = options.Uri;
     this.duration = options.Duration;
     this.videoPlayer = new VideoPlayer();
     this.videoPlayer.Width = options.Width;
     this.videoPlayer.Height = options.Height;
     videoPlayer.SetSize(new Size(options.Width,options.Height));
     this.videoPlayer.Location = new Point(0.0, 0.0);
     base.MediaCanvas.Children.Add(this.videoPlayer);
 }
예제 #2
0
파일: Video.cs 프로젝트: afrog33k/eAd
    public Video(RegionOptions options)
    : base(options.Width, options.Height, options.Top, options.Left)
    {
        this.filePath = options.Uri;
        this.duration = options.Duration;

        videoPlayer = new VideoPlayer();
        videoPlayer.Width = options.Width;
        videoPlayer.Height = options.Height;
        videoPlayer.Location = new Point(0, 0);

        MediaCanvas.Children.Add(videoPlayer);
    }