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); }
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); }