Skip to content

libvlc.VLCPlayer.Media

Andrew Lambert edited this page Nov 26, 2022 · 9 revisions

Property declaration

 Dim Media As libvlc.Medium

Remarks

Gets and sets the current Medium for the player.

Because the Medium class can automatically convert from a FolderItem or String, you may assign a FolderItem or string to this property directly.

Examples

This example assigns a FolderItem object as the Media.

  Dim player As New VLCPlayer
  player.Media = GetFolderItem("C:\example\music.mp3")
  player.Play()

This example assigns a URL string as the Media.

  Dim player As New VLCPlayer
  player.Media = "http://www.example.com/video.mpg"
  player.Play()

See also

Clone this wiki locally