JohnOne Posted December 13, 2012 Share Posted December 13, 2012 (edited) EDIT:Solved using seangriffin's ____________________________________________________________________________________How do I get started in streaming an .flv file?This file is a public domain .flv of bugs bunny.If I paste it into a browser It will just start to download.http://files.fliiby.com/stream-video-new/3vdxpbk2fd.flv/JTBCSiUyMWhuayUxNkklMjUlRjUlRTElOTAlOEYlOEVfJTlEJTFCcCUyMiUwRiVCMyU5NiVBMkglOTUlM0Q4JUUzdiUwQSVBQSVFMw==%26video.flvWhere do I begin to look at how to stream it to a GUI activex object? Edited December 13, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted December 13, 2012 Author Share Posted December 13, 2012 (edited) I have this up to now, but it wont play. Any hints what I'm doing wrong? #include <GUIConstantsEx.au3> HotKeySet('{ESC}', '_Close') Opt('GUIOnEventMode', 1) Global $hGUI, $FlashCtrl Global $oFlash Global $fError = False $hGUI = GUICreate('Test', 670, 485) $oFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash.11") $oAutoItError = ObjEvent("AutoIt.Error", "COMError") $FlashCtrl = GUICtrlCreateObj($oFlash, 0, 0, 670, 480) GUISetOnEvent($GUI_EVENT_CLOSE, '_Close') With $oFlash .movie = "http://files.fliiby.com/stream-video-new/3vdxpbk2fd.flv/JTBCSiUyMWhuayUxNkklMjUlRjUlRTElOTAlOEYlOEVfJTlEJTFCcCUyMiUwRiVCMyU5NiVBMkglOTUlM0Q4JUUzdiUwQSVBQSVFMw==%26video.flv" .allowScriptAccess = "Always" .play ;() EndWith GUISetState() While 1 Sleep(10) WEnd Func _Close() $oFlash.Stop() $oFlash = 0 GUIDelete() Exit EndFunc ;==>_Close Func COMError() $fError = True EndFunc ;==>COMError EDIT: When I run this script, I can see from my meter that flv starts to download to somewhere. Edited December 13, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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