Skip to content

libvlc.Medium

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

libvlc.Medium

Class Declaration

 Protected Class Medium
 Inherits libvlc.VLCInstance

Remarks

This class represents a single media resource. Media resources can be a local file, a network resource such as an HTTP(S) download or real-time stream, a device such as the user's camera, and other types of media.

You will primarily use the Operator_Convert(FolderItem) and Operator_Convert(String) methods to create instances of this class. Calling the Constructor() with the New keyword is for duplicating another instance or other advanced features.

Example

 Dim m As libvlc.Medium = "http://media.example.com/foo.mp3" ' Operator_Convert(String)
 Dim p As New VLCPlayer
 p.Media = m
 If Not p.Play() Then MsgBox("Unable to play media!")

Methods

Properties

The following properties correspond to metadata about the medium and are not individually documented:

  • Actors As String
  • Album As String
  • AlbumArtist As String
  • Artist As String
  • Artwork As Picture
  • ArtworkURL As String
  • Copyright As String
  • Date As String
  • Description As String
  • Director As String
  • DiscNumber As String
  • DiscTotal As String
  • EncodedBy As String
  • Episode As String
  • Genre As String
  • Language As String
  • Publisher As String
  • Rating As String
  • Season As String
  • Setting As String
  • ShowName As String
  • Title As String
  • TrackID As String
  • TrackNumber As String
  • TrackTotal As String
  • URL As String (not to be confused with the MediaURL property below.)

Other properties

Clone this wiki locally