Interface IMediaPlayerCore
- Namespace
- VisioForge.Core.MediaPlayer
- Assembly
- VisioForge.Core.dll
Defines the core interface for Media Player SDK implementations, providing access to underlying player functionality, DVD controls, and source mode information.
public interface IMediaPlayerCore : IMPVCVECoreImplements
Remarks
This interface extends IMPVCVECore and serves as the foundation for all media player implementations. It provides access to the concrete MediaPlayerCore instance, DVD navigation controls (when playing DVDs), and information about the current media source type and playback engine.
Methods
GetCore()
Gets the underlying MediaPlayerCore instance that implements this interface.
MediaPlayerCore GetCore()Returns
- MediaPlayerCore
-
The concrete MediaPlayerCore implementation providing full access to all player functionality, properties, and events.
Remarks
Use this method when you need access to functionality not exposed through the interface abstraction, such as platform-specific features or advanced configuration.
GetDVDControl()
Gets the DirectShow DVD navigation control interface for DVD playback control.
IDvdControl2 GetDVDControl()Returns
- IDvdControl2
-
An IDvdControl2 interface for controlling DVD navigation, or null if not playing a DVD or if the DirectShow engine is not in use.
Remarks
This interface provides DVD-specific controls such as menu navigation, chapter selection, angle changes, and audio/subtitle stream selection. Only available when using the DirectShow engine (LAV mode) with DVD content.
GetDVDInfo()
Gets the DirectShow DVD information interface for querying DVD properties and state.
IDvdInfo2 GetDVDInfo()Returns
- IDvdInfo2
-
An IDvdInfo2 interface for retrieving DVD information, or null if not playing a DVD or if the DirectShow engine is not in use.
Remarks
This interface provides read-only access to DVD information such as current domain, title/chapter count, available audio/subtitle streams, parental level settings, and disc region information. Only available when using the DirectShow engine with DVD content.
GetSourceMode()
Gets the current media source mode indicating which playback engine is in use.
MediaPlayerSourceMode GetSourceMode()Returns
- MediaPlayerSourceMode
-
The active MediaPlayerSourceMode: LAV (DirectShow with LAV Filters), File (DirectShow), MediaFoundation, FFMPEG, or other specialized modes.
Remarks
The source mode determines which underlying technology is used for media playback. Different modes offer different capabilities:
- LAV: Best compatibility and codec support via DirectShow
- MediaFoundation: Native Windows API, good for DRM content
- FFMPEG: Cross-platform support, best for streaming protocols The mode is typically set in Player.SourceMode before playback.