Sign in to follow this  
Followers 0
nend

Video stream and width and heigth

3 posts in this topic

#1 ·  Posted (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 by nend

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 mind

Thanks 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 by nend

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