-
-
Notifications
You must be signed in to change notification settings - Fork 4
libvlc.Medium
Andrew Lambert edited this page Nov 26, 2022
·
22 revisions
libvlc.Medium
Protected Class Medium
Inherits libvlc.VLCInstance
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.
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!")
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.)
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 "☜"