Jump to content

Streaming with autoit


Recommended Posts

Hi!...I would create a programm that can play a .asx link for esample :

http://www.xxxxxx.com/xxxxx.asx

I would like use a mediaplayer object to play it, i have this code :

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1_1 = GUICreate("Form1", 401, 274, 156, 117)
$Obj1_ctrl = ObjCreate("WMPlayer.OCX.7")
$Obj1_ctrl_ctrl = GUICtrlCreateObj($Obj1_ctrl, 0, 0, 400, 240)
$Button1 = GUICtrlCreateButton("Exit", 320, 248, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Watch", 240, 248, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
Case $Button2
;I would like to play a .asx link

    EndSwitch
WEnd

How i can play a .asx link with that code?

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

This is an example of a media object embedded in IE. This should give you some direction.

<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" 
standby="Loading Microsoft Windows® Media Player components..." 
type="application/x-oleobject" width="280" height="256"> 
<param name="fileName" value="./Samples/Resources/clock.avi"> 
<param name="animationatStart" value="true"> 
<param name="transparentatStart" value="true"> 
<param name="autoStart" value="true"> 
<param name="showControls" value="true"> 
<param name="Volume" value="-450"> 
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="./Samples/Resources/clock.avi" name="MediaPlayer1" width=320 height=240 autostart=1 showcontrols=1 volume=-450> </object>

Edited by Volly
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...