Platforms to show: All Mac Windows Linux Cross-Platform

VLCEventManagerMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class VLC MBS VLC Plugin 12.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The class for getting event with VLC.
Example
// get notified when VLC starts playing and when the media ended
// MyVLCEvents is a subclass of VLCEventManagerMBS with the events implemented.
// Player is a property of the window: Player As VLCMediaPlayerMBS (see VLCMediaPlayerMBS)
// Events is a property of the window: Events As MyVLCEvents
If Player = Nil Then Return
Events = New MyVLCEvents(Player)

// in MyVLCEvents:
Sub MediaPlayerPlaying() Handles MediaPlayerPlaying
System.DebugLog "Playing."
End Sub

Sub MediaPlayerEndReached() Handles MediaPlayerEndReached
System.DebugLog "Finished."
End Sub

Sub MediaPlayerTimeChanged(newTime As Int64) Handles MediaPlayerTimeChanged
System.DebugLog "Position: " + Format(newTime / 1000, "0.0") + " s"
End Sub

Only the events which the parent object sends are delivered.
With 12.3pr5 and newer plugins, this function sends events to main thread as it should be.

Log Levels

Constant Value Description
kLogLevelDebug 0 Debug message
kLogLevelError 4 Error message.
kLogLevelNotice 2 Important informational message
kLogLevelWarning 3 Warning (potential error) message

This class has no subclasses.

Blog Entries

Some examples using this class:

Some related classes:


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


VLCEqualizerMBS   -   VLCExitHandlerMBS


The biggest plugin in space...