本文整理汇总了C#中Video.Pause方法的典型用法代码示例。如果您正苦于以下问题:C# Video.Pause方法的具体用法?C# Video.Pause怎么用?C# Video.Pause使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Video
的用法示例。
在下文中一共展示了Video.Pause方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DeepCopy
public IObject DeepCopy()
{
var newVid = new Video(false)
{
Source = Source,
Height = Height,
Width = Width,
LoadedBehavior = LoadedBehavior,
ScrubbingEnabled = ScrubbingEnabled,
Visible = Visible,
ObjectPath = ObjectPath,
ObjectName = Utilities.GiveUniqueName(Source),
Autoplay = Autoplay,
RemoteSource = RemoteSource
};
newVid.StartPlaying();
newVid.Pause();
if (!newVid.Visible)
newVid.Opacity = 0.3;
return newVid;
}
示例2: NewVideo
public static Video NewVideo(bool autoplay)
{
var video = new Video(autoplay);
var w = new AddListenVideoWindow();
if (w.ShowDialog() != true) return null;
var mainWin = DesignerMainWindow.GetInstance();
Point currentMousePosition = mainWin.GetCurrentMousePosition();
video.Source = w.TheElem.Source;
video.Width = w.TheElem.Width;
video.Height = w.TheElem.Height;
video.ObjectName = Utilities.GiveUniqueName(video.Source);
video.ObjectPath = w.ObjectPath;
video.LoadedBehavior = MediaState.Manual;
video.ScrubbingEnabled = true;
video.StartPlaying();
video.Pause();
InkCanvas.SetTop(video, currentMousePosition.Y);
InkCanvas.SetLeft(video, currentMousePosition.X);
Panel.SetZIndex(video, Practice.GetInstance().GetSlideByPosition(mainWin.GetCurrentSlideNr()).SlideObjects.Count);
return video;
}