Skip to content

libvlc.VLCPlayer

Andrew Lambert edited this page Apr 27, 2016 · 33 revisions

libvlc.VLCPlayer

##Class Declaration

 Global Class VLCPlayer
 Inherits VLCInstance

##Remarks This class wraps the Media Player API. There is no GUI shown unless you attempt to play a video. Call EmbedWithin to embed the player in any window or control.

###Basic use 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.

  Dim player As New VLCPlayer
  player.Media = GetOpenFolderItem(MediaFileTypes.All)
  player.Play
    Do Until player.CurrentState = libvlc.PlayerState.ENDED
    If player.CurrentState = libvlc.PlayerState.ERROR Then Exit Do
    If App.CurrentThread = Nil Then
      App.DoEvents
    Else
      App.SleepCurrentThread(200)
    End If
  Loop Until player.CurrentState = libvlc.PlayerState.STOPPING

##Event Definitions

##Methods

##Properties

##Shared Methods

##See also

Clone this wiki locally