←Select platform
In This Topic ▼

PlayCtrl Class Members

Summary

The following tables list the members exposed by PlayCtrl.

Public Constructors

Name Description
Public Constructor PlayCtrl The PlayCtrl control object constructor.

Public Methods

Name Description
Public Method CheckSeekingCapabilities Specifies whether the object is capable of performing the specified seeking operation.
Public Method GetPreferredMediaSourceHandler Retrieves the preferred media source handler's GUID set using SetPreferredMediaSourceHandler.
Public Method GetStillDIB Gets a device-independent bitmap (DIB).
Public Method GetStillImage Gets a System.Drawing.Image object.
Public Method GetSubObject Gets the specified topology object.
Public Method HasDialog Checks whether the specified property dialog is available.
Public Method IsRateSupported Determines whether a specific playback rate is supported.
Public Method MarkSelectionEnd Sets the selection ending mark equal to the current position.
Public Method MarkSelectionStart Sets the selection starting mark equal to the current position.
Public Method NextFrame Seeks to the next video frame.
Public Method Pause Pauses the current media file playback.
Public Method PreviousFrame Seeks for the previous video frame.
Public Method ResetSource Resets the media source.
Public Method Run Plays the current media source.
Public Method SaveStillBitmap Saves a snapshot from the running stream to a file as a bitmap.
Public Method SaveStillDIB Saves a snapshot from the running stream to a file as a Device Independent Bitmap (DIB).
Public Method SeekEnd Seeks for the end of the media file.
Public Method SeekSelectionEnd Seeks for the ending mark of the selection.
Public Method SeekSelectionStart Seeks for the starting mark for the selection.
Public Method SeekStart Seeks for the beginning of the media file.
Public Method SetPreferredMediaSourceHandler Sets a preferred media source handler's GUID.
Public Method ShowDialog Displays the specified property dialog.
Public Method Stop Stops the current media file playback.
Public Method ToggleFullScreenMode Switches the full screen mode on or off.

Protected Methods

Name Description
Protected Method AttachInterfaces Internal method to attach interfaces to the underlying control object.
Protected Method CreateSink Internal method to create the event sink for the underlying control object.
Protected Method DetachSink Internal method to detach the event sink for the underlying control object.
Protected Method Dispose Releases internal control object and related object references.

Public Properties

Name Description
Public Property AllowedStreams Indicates which streams can be played.
Public Property Appearance Gets or sets a value determining the appearance of the control.
Public Property AudioProcessors Gets the registered audio processors collection object.
Public Property AudioRenderers Gets the registered audio renderers collection object.
Public Property Author Gets the name of the media's author (if it exists).
Public Property AutoRewind Gets a value indicating whether the object will automatically rewind to the starting point once playback has stopped.
Public Property AutoSize Gets or sets a value indicating whether the control will be automatically resized.
Public Property AutoStart Gets a value indicating whether the object will automatically start playing the media once the source has been assigned.
Public Property BackColor Gets or sets the background color for the control.
Public Property Balance Gets or sets the balance value of the audio stream.
Public Property BorderStyle Gets or sets the border style for the control.
Public Property Copyright Gets copyright information for the (if it exists).
Public Property CurrentFramePosition Gets or sets the current frame position.
Public Property CurrentPosition Gets or sets the current position, relative to the total duration of the media, in seconds.
Public Property CurrentTrackingPosition Gets or sets the current tracking position.
Public Property Description Gets the description of the media's content (if it exists).
Public Property Duration Gets the duration of the media, in seconds.
Public Property Enabled Gets or sets a value indicating whether the control can respond to user interaction.
Public Property FrameDuration Gets the frame duration of the media, in seconds.
Public Property FullScreenMode Gets or sets the full-screen mode for the video renderer.
Public Property Mute Gets a value indicating whether the audio is muted.
Public Property PlayCount Gets or sets the number of times that playback should repeat.
Public Property Rate Gets or sets the rate of playback relative to normal playback speed.
Public Property Rating Gets the media's rating (if it exists).
Public Property RenderedStreams Gets the streams that have been rendered.
Public Property ScaleHeight Gets or sets the height of the client area of the control.
Public Property ScaleLeft Specifies the X coordinate of the origin in a custom coordinate system for the client area.
Public Property ScaleMode Specifies the unit of measure for the control.
Public Property ScaleTop Specifies the Y coordinate of the origin in a custom coordinate system for the client area.
Public Property ScaleWidth Specifies the width of the client area of the control.
Public Property SelectedAudioProcessors Gets or sets the selected audio processors collection object.
Public Property SelectedVideoProcessors Gets the selected video processors collection object.
Public Property SelectionEnd Gets or sets the current selection end position, in seconds.
Public Property SelectionStart Gets or sets the current selection start position, in seconds.
Public Property SourceAudioFOURCC Gets the FOURCC format id for the source audio.
Public Property SourceAudioType Gets a string that represents the GUID of the source's audio type.
Public Property SourceFile Gets or sets the media source filename, URL or UDP address.
Public Property SourceObject Gets or sets the media source object.
Public Property SourceStream Gets or sets the media source stream.
Public Property SourceType Gets the media source type.
Public Property SourceVideoFOURCC Gets the FOURCC format id of the source video format.
Public Property SourceVideoType Gets a string that represents the GUID of the source' video type.
Public Property State Gets the play control current state.
Public Property Title Gets the media's title (if it exists).
Public Property TrackingSelectionEnd Gets the current tracking selection end position.
Public Property TrackingSelectionStart Gets the current tracking selection start position.
Public Property UnrenderedStreams Gets the streams that have not been rendered.
Public Property VideoHeight Gets the height of the current video.
Public Property VideoProcessors Gets the registered video processors collection object.
Public Property VideoWidth Gets the width of the current video.
Public Property VideoWindow Gets the handle to the current video window.
Public Property VideoWindowHeight Gets the height of the video window.
Public Property VideoWindowLeft Gets the left position of the video window.
Public Property VideoWindowSizeMode Gets or sets the current video window size mode.
Public Property VideoWindowTop Gets the top position of the video window.
Public Property VideoWindowWidth Gets the width of the video window.
Public Property Volume Gets or sets the volume (amplitude) of the audio signal.
Public Property Window Gets the handle to the Play control window.

Public Events

Name Description
Public Event Click Occurs when the control is clicked.
Public Event DoubleClick Occurs when the control is double-clicked.
Public Event ErrorAbort Occurs when an error has caused an operation to abort.
Public Event KeyDown Occurs when the control has detected a KeyDown event.
Public Event KeyPress Occurs when the control has detected a KeyPress event.
Public Event KeyUp Occurs when the control has detected a KeyUp event.
Public Event MouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed.
Public Event MouseEnter Occurs when the mouse pointer enters the control.
Public Event MouseHover Occurs when the mouse pointer rests on the control.
Public Event MouseLeave Occurs when the mouse pointer leaves the control.
Public Event MouseMove Occurs when the mouse pointer is moved over the control.
Public Event MouseUp Occurs when the mouse pointer is over the control and a mouse button is released.
Public Event Resize Occurs when the control is resized.
Public Event StateChanged Occurs when the object's state has changed.
Public Event TrackingPositionChanged Occurs periodically to provide notification of when the tracking position changes.
Public Event TrackingSelectionChanged Provides notification of tracking selection changes.

See Also

Reference

PlayCtrl Class

Leadtools.MediaFoundation Namespace

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MediaFoundation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.