Video wiedergeben?

  • Hallo!

    Heute nur eine kurze Frage:

    ISt es möglich ein Video (am liebstem im Avi-Format) wiederzugeben, oder ist das nicht möglich?
    Wenn ja, welche DLLs, UDFs etc. benötige ich?

    Danke schonmal im Voraus!

    MatthiasG.

    2 Mal editiert, zuletzt von MatthiasG. (1. Mai 2009 um 10:56)

  • Leider bekomme ich nur Ergebnisse, die mich nicht wirklich interessieren, bzw. nicht das richtige Ergebniss erzielen...

    Edit: Im englischem Forum habe ich was gefunden, was aber nicht richtig funktioniert...

    Ich habe einfach nur eine GUI, die in der Mitte einen Player haben soll... (Windows Movie Maker konvertiert bei mir nicht richtig...) :(

    Einmal editiert, zuletzt von MatthiasG. (1. Mai 2009 um 12:41)

  • Danke, das schaue ich mir an, hatte nach wmv udf gesucht und nach wmv, aber nur eine andere gefunden, die den WM-Plaxer über die _IE-Funktionen einbindet...

    Edit:

    Spoiler anzeigen
    [autoit]

    ;----------------------------------
    ;--Windows Media Player Functions--
    ;----------------------------------
    GUICreate("Test", 200, 200)
    $obj = _wmpcreate(1, 0, 0, 200, 200)
    _wmploadmedia($obj, "localhost\" & @ScriptDir & "\test.wmv")
    GUISetState()
    While 1
    Sleep(100)
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    #cs
    _wmpcreate($show, $left, $top, $width = 100, $height = 100)
    $show: 1 = shows controls
    2 = hides controls

    Return: The object for the control
    #ce
    Func _wmpcreate($show, $left, $top, $width = 100, $height = 100)
    $oWMP = ObjCreate("WMPlayer.OCX")
    If $oWMP = 0 Then Return 0
    $oWMP.settings.autoStart = "False"
    If $show = 1 Then
    GUICtrlCreateObj($oWMP, $left, $top, $width, $height)
    EndIf
    Return $oWMP
    EndFunc ;==>_wmpcreate
    #cs
    _wmploadmedia( $object, $URL, $autostart = 1 )
    $object: Object returned from the _wmpcreate()
    $URL: Path or URL of the media
    $autostart: 1 = yes
    0 = no

    Return: None
    #ce
    Func _wmploadmedia($object, $URL, $autostart = 1)
    $object.URL = $URL
    While Not $object.controls.isAvailable("play")
    Sleep(1)
    WEnd
    If $autostart = 1 Then $object.controls.play()
    EndFunc ;==>_wmploadmedia

    [/autoit]

    funktioniert leider nicht, ich bekomme diese Meldung:
    Der Inhalt kann nicht angezeigt werden, da er nicht mehr verfügbar ist.

    Normales öffnen mit dem Windows-Media-Player macht keine Probleme...

    Einmal editiert, zuletzt von MatthiasG. (1. Mai 2009 um 12:54)

  • dann konvertierst du falsch und wo ist das Problem, ein wmp objekt einzubinden, damit kannst du doch auch alles abspielen