Jump to content

PlaylistItem in VB


DerThommy

Recommended Posts

Hallo,

 

habe nun schon seit 2 Stunden rumprobiert mir den Titel der im DVBViewer abgespielten Datei auszugeben, allerdings bekomme ich es nicht wirklich hin. Was ich schon hinbekomme: ÜBer CurrentTitle die aktuelle Nummer in der Playlist abzufragen.

 

Ich denke mal, dass ich Filename usw über IPlaylistItem bekomme, nur frage ich mich wie. Kann mir hier vll jemand einen kleines Code Beispiel posten?

 

Danke :)

Link to comment

aaah habe es gerade doch noch hinbekommen:

 

Dim myDVBViewer As DVBViewer

Dim PlayList As IPlaylist

Dim PlayItem As IPlaylistItem

Dim CurrentTitle As Integer

Dim Text As String

myDVBViewer = GetObject(, "DVBViewerServer.DVBViewer")

CurrentTitle = myDVBViewer.PlayListManager.CurrentTitle()

PlayList = myDVBViewer.PlayListManager.GetPlaylist(0)

 

PlayItem = PlayList.Item(CurrentTitle)

 

 

Text = PlayItem.Filename

Link to comment
aaah habe es gerade doch noch hinbekommen:

 

Dim myDVBViewer As DVBViewer

Dim PlayList As IPlaylist

Dim PlayItem As IPlaylistItem

Dim CurrentTitle As Integer

Dim Text As String

myDVBViewer = GetObject(, "DVBViewerServer.DVBViewer")

CurrentTitle = myDVBViewer.PlayListManager.CurrentTitle()

PlayList = myDVBViewer.PlayListManager.GetPlaylist(0)

 

PlayItem = PlayList.Item(CurrentTitle)

 

 

Text = PlayItem.Filename

 

Dafür gibt es (glaube ich) auch einen Wert im Datamanager. Wirf mal einen Blick in die Werte mit dem DVBVSpy, wenn eine Playlist abgespielt wird.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...