[]
The C1MediaPlayer plays video and audio from the internet.
[TemplatePart(Name = "FullScreenElement", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "MediaPanel", Type = typeof(Panel))]
[TemplatePart(Name = "NormalControlPanel", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "FullScreenControlPanel", Type = typeof(FrameworkElement))]
[TemplateVisualState(Name = "Idle", GroupName = "IdleStates")]
[TemplateVisualState(Name = "Interacting", GroupName = "IdleStates")]
[TemplateVisualState(Name = "Playing", GroupName = "MediaStates")]
[TemplateVisualState(Name = "Unstarted", GroupName = "MediaStates")]
[TemplateVisualState(Name = "Buffering", GroupName = "MediaStates")]
[TemplateVisualState(Name = "Paused", GroupName = "MediaStates")]
[TemplateVisualState(Name = "NoMedia", GroupName = "MediaStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[StyleTypedProperty(Property = "ToolBarButtonBaseStyle", StyleTargetType = typeof(Button))]
public class C1MediaPlayer : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
| Name | Description |
|---|---|
| C1MediaPlayer() | Initializes a new instance of a C1MediaPlayer. |
| Name | Description |
|---|---|
| AutoAdvance | Gets or sets a value indicating whether the player advances to the next media item when the reproduction of the current item ends. See also AutoPlay. |
| AutoPlay | Gets or sets a value indicating whether media begins to play automatically when the player starts or the current media item changes. |
| BufferingProgress | Gets a value that indicates the percentage of buffering progress made. |
| BufferingTemplate | Gets or sets the template for an overlay over the screen when the state is Buffering. |
| ButtonBackground | Gets or sets the Brush that will be assigned to the Background of the buttons inside the control. |
| ButtonForeground | Gets or sets the Brush that will be assigned to the Foreground of the buttons inside the control. |
| DownloadProgress | Gets a percentage value indicating the amount of download completed for content located on a remote server. |
| FocusBrush | Gets or sets the Brush used to highlight the focused control. |
| IsChapterListButtonVisible | Gets or sets a value indicating whether the button that toggles the visibility of list of chapter items is visible. |
| IsChapterListVisible | Gets or sets a value indicating whether the list of chapters for the current media item is visible. |
| IsFullScreen | Gets or sets a value indicating whether the player is running maximized. |
| IsFullScreenButtonVisible | Gets or sets a value indicating whether the button that toggles full screen mode is visible. |
| IsItemListButtonVisible | Gets or sets a value indicating whether the button that toggles the visibility of list of media items is visible. |
| IsItemListVisible | Gets or sets a value indicating whether the list of media items is visible. |
| IsLoopButtonVisible | Gets or sets a value indicating whether the button that toggles media item list looping is visible. |
| IsLooping | Gets or sets a value indicating whether the first media item should play after the last finishes. |
| IsMuted | Gets or sets a value indicating whether the audio is muted. |
| IsNextButtonVisible | Gets or sets a value indicating whether the button that advances to the next media item is visible. |
| IsPlayButtonVisible | Gets or sets a value indicating whether the button that starts and stops media playing is visible. |
| IsPlaying | Gets or sets a value indicating whether media advances. |
| IsPositionSliderVisible | Gets or sets a value indicating whether the slider that shows and controls the current position is visible. |
| IsPreviousButtonVisible | Gets or sets a value indicating whether the button that advances to the previous media item is visible. |
| IsStopButtonVisible | Gets or sets a value indicating whether the button that stops the media is visible. |
| IsTimePresenterVisible | Gets or sets a value indicating whether the widget that shows the current and total time of the media is visible. |
| IsTitleVisible | Gets or sets a value indicating whether the text block that shows the title of the current item is visible. |
| IsVolumeControlVisible | Gets or sets a value indicating whether the control that controls the media's volume is visible. |
| Items | List of C1MediaItem to play. |
| ItemsView | Collection view that mantains the current item for Items. |
| MediaState | The current playing state of the video or audio file. |
| MediaTransform | Gets or sets a graphics transformation that should apply to the media rectangle when layout is performed. |
| MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
| MoveCurrentToCommand | Gets the value that represents the MoveCurrentTo command. |
| NaturalDuration | Gets the natural duration of the current media item. |
| NextCommand | Gets the value that represents the Next command. |
| PauseCommand | Gets the value that represents the Pause command. |
| PausedTemplate | Gets or sets the template for an overlay over the screen when the state is Paused. |
| PlayCommand | Gets the value that represents the Play command. |
| Position | Gets or sets the current position of the current media item. |
| PressedBrush | Gets or sets the Brush used to paint a button when it is pressed. |
| PreviousCommand | Gets the value that represents the Previous command. |
| ScreenExtension | Gets or sets the template for an optional overlay of the video area. |
| SeekCommand | Gets the value that represents the Seek command. |
| StopCommand | Gets the value that represents the Stop command. |
| SuperimposeButtonsFullScreen | Set to true to show the buttons over the video when the player is in full screen mode. |
| SuperimposeButtonsWindowed | Set to true to show the buttons over the video when the player is not in full screen mode. |
| ToolBarButtonBaseStyle | Gets the style of the ToolBat buttons, so that the theme can be matched by user controls in the ToolBarExtension template. |
| ToolBarExtension | Gets or sets the template for an optional extension of the ToolBar that contains the show/hide items/chapter list. |
| UnstartedTemplate | Gets or sets the template for an overlay over the screen when the state is Unstarted. |
| VideoBrush | Gets a Brush that paints an area with video content. |
| Volume | Gets or sets the media's volume. |
| Name | Description |
|---|---|
| ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
| ChangeVisualStateIdle(bool) | Updates the current visual state of the Idle visual state group to match the object's properties. |
| ChangeVisualStateMedia(bool) | Updates the current visual state of the Media visual state group to match the object's properties. |
| Close() | Closes the underlying media. |
| OnApplyTemplate() | Builds the visual tree for the C1MediaPlayer control when a new template is applied. |
| OnMouseMove(MouseEventArgs) | Called before the MouseMove event occurs. |
| OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked whenever the effective value of any dependency property has been updated. |
| Pause() | Pauses media at the current position. |
| Play() | Plays media from the current position. |
| Stop() | Stops and resets media to be played from the beginning of the current item. |
| Name | Description |
|---|---|
| IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |
| MediaFailed | Occurs when there is an error associated with the MediaSource of the current C1MediaItem. |
| MediaStateChanged | Event raised when the MediaState property has changed. |
| ScriptCommand | Occurs when a script command has been encountered within the media. |