nend Posted March 13, 2007 Share Posted March 13, 2007 (edited) Hi, How do you get automatic the width and height from a video stream? I've got this script but I want it to aumomatic get the width and height so I can put it in a window with just the right size. #include <GUIConstants.au3> $Form1 = GUICreate("AForm1", 300, 448, 192, 125, $WS_DLGFRAME) $oWMP = ObjCreate("WMPlayer.OCX") GUICtrlCreateObj($oWMP, 0, 0, 300, 300) $oWMP.URL = "http://livestream.xs4all.nl/streamgate.asp?ch=72&x=.asx" $oWMP.controls.play() $oWMP.stretchToFit = True $oWMP.windowlessVideo = True $oWMP.fullscreen = True $oWMP.uiMode = 'none' GUISetState(@SW_SHOW) While 1 WEnd Exit Edited March 13, 2007 by nend Link to comment Share on other sites More sharing options...
Misha Posted March 13, 2007 Share Posted March 13, 2007 if you get the source of the page it'll show the size of it there at some point? other then that only wingetclientsize comes to mind Link to comment Share on other sites More sharing options...
nend Posted March 13, 2007 Author Share Posted March 13, 2007 (edited) if you get the source of the page it'll show the size of it there at some point? other then that only wingetclientsize comes to mindThanks for your help!!But what I need is to do it automatic.So when I change a link automatic resize the window on the width and height of the videostream. Edited March 13, 2007 by nend Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now