Enum MediaPlayerSourceMode
- Namespace
- VisioForge.Core.Types.MediaPlayer
- Assembly
- VisioForge.Core.dll
Specifies the source mode for Media Player SDK .NET, determining which underlying technology and filters are used for media playback.
public enum MediaPlayerSourceModeFields
File_DS = 0-
File playback using DirectShow framework.
Uses Windows DirectShow API for media playback. Provides native Windows integration and supports installed DirectShow codecs and filters. Best for standard media formats on Windows platforms with good system codec support.
FFMPEG = 1-
FFMPEG-based source for files and network streams.
Uses the FFMPEG library for media decoding and demuxing. Provides excellent format support including rare and professional codecs. Supports both local files and network streams (HTTP, RTSP, RTMP, etc.). Cross-platform compatible and doesn't rely on system codecs.
File_VLC = 2-
File playback using VLC engine.
Uses the VLC media player engine (libVLC) for playback. Provides robust playback capabilities with built-in codecs. Good for scenarios where VLC's specific features or codec support is needed. Supports a wide range of formats without requiring system codecs.
Memory_DS = 3-
Memory stream playback using DirectShow.
Allows playback from in-memory streams using DirectShow. Useful for playing media data that is already loaded in memory or generated on-the-fly. Requires IStream interface implementation. The stream must be seekable for most media formats.
DVD_DS = 4-
DVD disc playback using DirectShow.
Specialized mode for playing DVD discs with full menu support, navigation, and chapter selection. Uses DirectShow DVD Navigator filter. Requires DVD decoding capabilities on the system (either software or hardware DVD decoder).
MMS_WMV_DS = 5-
MMS/WMV network stream playback using DirectShow.
Optimized for Microsoft Media Server (MMS) protocol and Windows Media Video (WMV) streams. Uses Windows Media Foundation or DirectShow filters for streaming Windows Media content. Best for legacy Windows Media streaming scenarios.
HTTP_RTSP_VLC = 6-
HTTP/RTSP stream playback using VLC engine.
Uses VLC's networking capabilities for HTTP and RTSP stream playback. Provides robust network stream handling with automatic reconnection, buffering, and protocol support. Ideal for IP cameras, streaming servers, and live broadcasts.
Encrypted_File_DS = 7-
Encrypted video file playback using DirectShow.
Supports playback of encrypted or DRM-protected media files using DirectShow. Requires appropriate decryption filters or DRM components to be installed. Used for playing protected content with proper authorization.
CustomSource = 8-
Custom DirectShow source filter specified by CLSID.
Allows using a custom DirectShow source filter by specifying its CLSID. Useful for proprietary formats or specialized hardware that provides custom filters. The specified filter must be properly registered on the system.
LAV = 9Deprecated-
LAV Filters are no longer used: this value plays through the FFMPEG source. Use MediaPlayerSourceMode.FFMPEG.
Obsolete: plays through the VisioForge FFMPEG Source, as VisioForge.Core.Types.MediaPlayer.MediaPlayerSourceMode.FFMPEG does.
LAV Filters are no longer used. Setting this value sets VisioForge.Core.Types.MediaPlayer.MediaPlayerSourceMode.FFMPEG. To play through LAV Filters you installed yourself, use VisioForge.Core.Types.MediaPlayer.MediaPlayerSourceMode.File_DS with Custom_Splitter and Custom_Video_Decoder.
BluRay = 10-
Blu-ray disc playback from the disc's folder structure.
Open the disc's BDMV\index.bdmv. The largest .m2ts in BDMV\STREAM is played through the VisioForge FFMPEG Source, as the VisioForge.Core.Types.MediaPlayer.MediaPlayerSourceMode.FFMPEG mode plays a file. Not supported: ISO images (mount the image first), playlists (.mpls), titles split over several clips (only the largest clip plays), menus and encrypted (AACS) discs. Each of them, a disc without a BDMV\STREAM folder and a disc that cannot be read fail with an error that names the reason.
Timeshift = 11-
Live timeshift source file created by Video Capture SDK .NET.
Plays special timeshift files created by VisioForge Video Capture SDK during live recording. Allows playing a file while it's still being recorded, enabling time-shifting functionality for live TV or surveillance scenarios.
MIDI = 12-
MIDI and Karaoke file playback engine.
Specialized playback mode for MIDI music files and Karaoke formats (like CDG+MP3). Supports MIDI synthesis, lyrics display, and karaoke-specific features. Uses Windows MIDI subsystem or custom MIDI rendering engines.
GPU = 13Deprecated-
LAV Filters are no longer used: this value plays through the FFMPEG source, and Source_GPU_Mode is ignored. Use MediaPlayerSourceMode.FFMPEG, with Source_FFMPEG_HWDecoder for an exact decoder.
Obsolete: plays through the VisioForge FFMPEG Source, as VisioForge.Core.Types.MediaPlayer.MediaPlayerSourceMode.FFMPEG does.
Setting this value sets VisioForge.Core.Types.MediaPlayer.MediaPlayerSourceMode.FFMPEG. The decoder is Source_FFMPEG_HWDecoder, Auto by default, so playback never fails because of the GPU; Source_GPU_Mode is ignored. Set Source_FFMPEG_HWDecoder for an exact decoder.
Remarks
The Media Player SDK supports multiple playback engines and technologies. This enumeration allows you to select the most appropriate one based on your requirements for format support, performance, platform compatibility, and special features.