-
-
Notifications
You must be signed in to change notification settings - Fork 4
libvlc.VLCPlayer
libvlc.VLCPlayer
Global Class VLCPlayer
Inherits VLCInstance
This class wraps the Media Player API. All playback is ultimately performed by a VLCPlayer instance, which can be accessed through the TruePlayer
property on the appropriate class (e.g. VLCMediaPlayer.TruePlayer, ListPlayer.TruePlayer)
There is no GUI shown unless you attempt to play a video. Call EmbedWithin to embed the video output in any window or control. Playing a video without embedding the player will display the output in a new window.
Media playback occurs asynchronously on a separate (OS-level) thread.
Create a new instance, then use the Media
method to specify the media file or URL to be played. Media
accepts a FolderItem or String containing a fully-qualified URL.
Playback occurs asynchronously on a separate thread. This example uses a loop to detect when the player has stopped playing (due to error, end of file, or Stop command):
Dim player As New VLCPlayer
player.Media = GetOpenFolderItem(MediaFileTypes.All)
If Not player.Play() Then
Call MsgBox("Unable to begin playback!", 16, "Media error")
End If
- AddInterface
AudioTrackAudioTrackCountAudioTrackDescriptionAudioTrackIDAudioTrackIndex- Constructor
- EmbedWithin
- GetCursorXY
- GetVideoDimensions
- NavigateMenu
- NextFrame
- Operator_Compare
- Pause
- Play
- Resume
- SetAudioOutput
- SetSubtitleFile
- Stop
SubtitleCountSubtitleIndex- TakeSnapshot
- ToggleFullScreen
ToggleTeletext- VideoAdjustment
VideoTrackVideoTrackCountVideoTrackDescriptionVideoTrackIDVideoTrackIndex
- AspectRatio As String
- AudioTracks As libvlc.Meta.AudioTrackList
- CanPause As Boolean
- CanPlay As Boolean
- CanSeek As Boolean
- CaptureKeyboard As Boolean
- CaptureMouse As Boolean
- CurrentState As libvlc.PlayerState
- Deinterlace As String
- EmbeddedWithin As Integer
- Equalizer As libvlc.Equalizer
- Fullscreen As Boolean
- Handle As Ptr
- HasAudio As Boolean
- HasSubtitles As Boolean
- HasVideo As Boolean
- IsPlaying As Boolean
- LengthMS As Int64
- Media As libvlc.Medium
- MetaData As libvlc.Meta.MetaData
- Muted As Boolean
- Position As Single
- Scale As Single
- Speed As Single
- Subtitles As libvlc.Meta.SubtitlesTrackList
- TimeMS As Int64
- VideoTracks As libvlc.Meta.VideoTrackList
- Volume As Integer
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.
Entry-level points of interest denoted by "☜"