Jump to content

windowload und PlayFile


Flowy

Recommended Posts

Hi,

 

Ich möchte gerne, wenn MyMovies OSD geladen wird, dass im Hintergrund eine Musikdatei, die ich unter C:/cinema.mp3 abgespeichert hab, abgespielt wird.

 

option explicit
dim i, Timernumber, Text
'-----------------------------------------------------------------
sub main(ChannelID)
  if windowmanager.activeWindowID = 99789 or windowmanager.activeWindowID = 99790 Then
			PlayListManager.PlayFile("C:\cinema.mp3")
  end if

'standard inhalt ....

 

So, sobald ich MyMovies auswähle sollte ja nun das Lied abgespielt werden doch es passiert garnichts. An was kann das liegen? Sprich auch keine Fehlermeldung

bzw was mach ich falsch

 

Schonmal Danke

Link to comment

Bei mir spielt er es so nur ab wenn die Datei in der Playlist liegt, also der Speicherort der in der Playlist vorhandenen Datei mit dem in der vbs angeführten übereinstimmt.

Die Erläuterung im COM Interface hätte ich auch anders interpretiert. (Also ohne das der Titel importiert werden müsste.)

Link to comment

Hm sicher das ihr den Befehl richtig anwendet?

Mein Autoit Beispiel funktioniert wie dokumentiert:

$DVBViewer = ObjGet ("", "DVBViewerServer.DVBViewer")
If $DVBViewer = 0 Then
MsgBox (1, "", "Keine Verbindung zum DVBViewer möglich")
Exit
Else
$DVBViewer.PlayFile("");Pfad zum File angeben
EndIf
exit

Könnt ja auch mal eure vollständigen internen Skripte posten.

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...