Sign in to follow this  
Followers 0
AuToItItAlIaNlOv3R

Streaming with autoit

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Hi, please help me , how i can play a .asx file in autoit?...

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0