Trackchange event/notification (g_Player) (1 Viewer)

Messiahs

Portal Pro
December 11, 2008
222
106
Home Country
Germany Germany
Can someone post a small example for grabbing the "PlayBackChanged" (Trackchanged) event with a vb.net Plugin ?
I'm writing a small plugin, which have to react on the TrackChanging event.

Thanks & best regards,
Markus
 

Messiahs

Portal Pro
December 11, 2008
222
106
Home Country
Germany Germany
found a solution:

Imports MediaPortal.Player

Public Class cEvent
Private playlistPlayer As MediaPortal.Playlists.PlayListPlayer
Public Sub OnPlayBackStarted(ByVal type As MediaPortal.Player.g_Player.MediaType, ByVal filename As String)
MsgBox("Event")
End Sub

Public Sub New()
playlistPlayer = MediaPortal.Playlists.PlayListPlayer.SingletonPlayer
AddHandler (g_Player.PlayBackStarted), AddressOf OnPlayBackStarted
End Sub
End Class
 

Users who are viewing this thread

Top Bottom