Intersoft ClientUI Documentation
VideoPlayer Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXFlow Namespace : VideoPlayer Class






Provides a lightweight control to display a video complete with its player.

Object Model

VideoPlayer Class

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="MediaPlayerBackgroundElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="MediaPlayerContainerElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="SoundIconElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="MediaElement", Type=System.Windows.Controls.MediaElement)>
<TemplatePartAttribute(Name="FullScreenInButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)>
<TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="MediaContainerElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="FullScreenOutButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)>
<TemplatePartAttribute(Name="PlayButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)>
<TemplatePartAttribute(Name="PauseButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="SoundElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="SoundBorderElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="MediaPlayerProgressElement", Type=System.Windows.Controls.TextBlock)>
<TemplatePartAttribute(Name="MediaPlayerElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="VisualElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="MediaPlayerTrackerProgressElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="MediaPlayerTrackerPointElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="VideoDownloaderElement", Type=System.Windows.Controls.Grid)>
<DescriptionAttribute("Provides a lightweight control to display a video complete with its player.")>
<TemplatePartAttribute(Name="VideoProgressBar", Type=Intersoft.Client.UI.Controls.UXProgressBar)>
<TemplatePartAttribute(Name="MediaPlayerTrackerPlayElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="MediaPlayerTrackerElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="SoundPointElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="SoundTrackerElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="FirstFrameButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)>
<TemplatePartAttribute(Name="MediaPlayerTrackerBorderElement", Type=System.Windows.Controls.Border)>
Public Class VideoPlayer 
   Inherits Intersoft.Client.Framework.ISControl
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As VideoPlayer
C# 
[TemplatePartAttribute(Name="MediaPlayerBackgroundElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaPlayerContainerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundIconElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaElement", Type=System.Windows.Controls.MediaElement)]
[TemplatePartAttribute(Name="FullScreenInButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaContainerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FullScreenOutButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="PlayButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="PauseButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundBorderElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerProgressElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="MediaPlayerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="VisualElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaPlayerTrackerProgressElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerTrackerPointElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="VideoDownloaderElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control to display a video complete with its player.")]
[TemplatePartAttribute(Name="VideoProgressBar", Type=Intersoft.Client.UI.Controls.UXProgressBar)]
[TemplatePartAttribute(Name="MediaPlayerTrackerPlayElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerTrackerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundPointElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundTrackerElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FirstFrameButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="MediaPlayerTrackerBorderElement", Type=System.Windows.Controls.Border)]
public class VideoPlayer : Intersoft.Client.Framework.ISControl, IControlIFramework, ILicensing  
Delphi 
public class VideoPlayer = class(Intersoft.Client.Framework.ISControl, IControl, IFramework, ILicensing)
JScript 
TemplatePartAttribute(Name="MediaPlayerBackgroundElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="MediaPlayerContainerElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="SoundIconElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="MediaElement", Type=System.Windows.Controls.MediaElement)
TemplatePartAttribute(Name="FullScreenInButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)
TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="MediaContainerElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="FullScreenOutButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)
TemplatePartAttribute(Name="PlayButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)
TemplatePartAttribute(Name="PauseButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="SoundElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="SoundBorderElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="MediaPlayerProgressElement", Type=System.Windows.Controls.TextBlock)
TemplatePartAttribute(Name="MediaPlayerElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="VisualElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="MediaPlayerTrackerProgressElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="MediaPlayerTrackerPointElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="VideoDownloaderElement", Type=System.Windows.Controls.Grid)
DescriptionAttribute("Provides a lightweight control to display a video complete with its player.")
TemplatePartAttribute(Name="VideoProgressBar", Type=Intersoft.Client.UI.Controls.UXProgressBar)
TemplatePartAttribute(Name="MediaPlayerTrackerPlayElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="MediaPlayerTrackerElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="SoundPointElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="SoundTrackerElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="FirstFrameButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)
TemplatePartAttribute(Name="MediaPlayerTrackerBorderElement", Type=System.Windows.Controls.Border)
public class VideoPlayer extends Intersoft.Client.Framework.ISControl implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[TemplatePartAttribute(Name="MediaPlayerBackgroundElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaPlayerContainerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundIconElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaElement", Type=System.Windows.Controls.MediaElement)]
[TemplatePartAttribute(Name="FullScreenInButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaContainerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FullScreenOutButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="PlayButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="PauseButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundBorderElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerProgressElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="MediaPlayerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="VisualElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaPlayerTrackerProgressElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerTrackerPointElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="VideoDownloaderElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control to display a video complete with its player.")]
[TemplatePartAttribute(Name="VideoProgressBar", Type=Intersoft.Client.UI.Controls.UXProgressBar)]
[TemplatePartAttribute(Name="MediaPlayerTrackerPlayElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerTrackerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundPointElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundTrackerElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FirstFrameButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="MediaPlayerTrackerBorderElement", Type=System.Windows.Controls.Border)]
public __gc class VideoPlayer : public Intersoft.Client.Framework.ISControl, IControlIFramework, ILicensing  
C++/CLI 
[TemplatePartAttribute(Name="MediaPlayerBackgroundElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaPlayerContainerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundIconElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaElement", Type=System.Windows.Controls.MediaElement)]
[TemplatePartAttribute(Name="FullScreenInButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaContainerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FullScreenOutButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="PlayButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="PauseButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundBorderElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerProgressElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="MediaPlayerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="VisualElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="MediaPlayerTrackerProgressElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerTrackerPointElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="VideoDownloaderElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control to display a video complete with its player.")]
[TemplatePartAttribute(Name="VideoProgressBar", Type=Intersoft.Client.UI.Controls.UXProgressBar)]
[TemplatePartAttribute(Name="MediaPlayerTrackerPlayElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="MediaPlayerTrackerElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundPointElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="SoundTrackerElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FirstFrameButton", Type=Intersoft.Client.UI.Aqua.UXFlow.VideoPlayerButton)]
[TemplatePartAttribute(Name="MediaPlayerTrackerBorderElement", Type=System.Windows.Controls.Border)]
public ref class VideoPlayer : public Intersoft.Client.Framework.ISControl, IControlIFramework, ILicensing  

Remarks

VideoPlayer is a full-featured video player control with advanced media playback features supporting all media types in Silverlight. It supports two playback mode, real-time buffering or full download.

  • Buffering Mode
    In buffering mode, the video is streaming directly when played for the first time. There is no restriction in this mode, you are free to set the source to any external or internal URIs.
  • Pre-download
    In pre-download mode, the video will be downloaded completely before it can be played. A progress bar is shown to indicate the download progress in real-time. When the download completes, the control will play the video immediately, unless the video state is stopped or paused.

    Note that in pre-download mode you need to set security access to the designated source since it uses WebClient class from Silverlight core runtime.

Specifying Video Source

Video source is a string formatted URI that points to the target source. You can use relative path or absolute path for the value, but it needs to be in string representation.

XAML Copy Code
<Intersoft:VideoPlayer HorizontalAlignment="Center" Height="300" Width="400" VerticalAlignment="Center" VideoSource="movie.wmv"/>

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               Intersoft.Client.Framework.ISControl
                  Intersoft.Client.UI.Aqua.UXFlow.VideoPlayer

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.