Platforms to show: All Mac Windows Linux Cross-Platform

VLCMediaTrackMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class VLC MBS VLC Plugin 15.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The class for the media track.
Example
// show the audio and video tracks of a movie file with VLC
Var args() As String
Var vlc As New VLCInstanceMBS(args)
Var media As New VLCMediaMBS(vlc, SpecialFolder.Desktop.Child("movie.mp4").URLPath)
media.Parse

For Each track As VLCMediaTrackMBS In media.Tracks
Select Case track.Type
Case VLCMediaTrackMBS.TrackVideo
System.DebugLog "Video: " + track.CodecString + " " + track.Width.ToString + " x " + track.Height.ToString + ", " + Format(track.FrameRate, "0.00") + " fps"
Case VLCMediaTrackMBS.TrackAudio
System.DebugLog "Audio: " + track.CodecString + " " + track.Channels.ToString + " channels, " + track.Rate.ToString + " Hz, " + track.Language
Case VLCMediaTrackMBS.TrackText
System.DebugLog "Subtitle: " + track.Language
End Select
Next

This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Track Types

Constant Value Description
TrackAudio 0 Audio
TrackText 2 Text
TrackUnknown -1 Unknown type
TrackVideo 1 Video

This class has no subclasses.

Some methods using this class:

Some related classes:


The items on this page are in the following plugins: MBS VLC Plugin.


VLCMediaTrackInfoMBS   -   VLCMissingFunctionExceptionMBS


The biggest plugin in space...