Sign in to follow this  
Followers 0
JohnOne

Streaming .flv files (Solved)

2 posts in this topic

#1 ·  Posted (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.flv

Where do I begin to look at how to stream it to a GUI activex object?

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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