Rorka Posted March 30, 2009 Posted March 30, 2009 Okay, well is it possible to play an AVI, while it is downloading kinda like YouTube? Thanks
Authenticity Posted March 30, 2009 Posted March 30, 2009 I think so. AVI stop playing it's animation on the moment GUICtrlSetState($AVI, $GUI_AVISTOP) get called, or upon program termination. ;]
Rorka Posted March 30, 2009 Author Posted March 30, 2009 So if i downloaded 1% of it then played it using Autoit, it would continue when more was downloaded?
Authenticity Posted March 30, 2009 Posted March 30, 2009 (edited) AVI is not depended on external events other than it's own. It's either playing it's own animation GUICtrlSetState($AVI, $GUI_AVISTART) or not playing it GUICtrlSetState($AVI, $GUI_AVISTOP). You can test it, make a gui with a button control and start the avi, pushing the button may popup a message box, if the avi animation keep looping then nothing will stop it but GUICtrlSetState($AVI, $GUI_AVISTOP) or program termination.Edit: Here, take a look:#include <GuiConstantsEx.au3> Dim $hGUI = GUICreate('Test', 200, 100) Dim $AVI = GUICtrlCreateAvi('shell32.dll', 150, 0, 0) Dim $Button = GUICtrlCreateButton('Button', 70, 70, 60, 25) GUISetState() GUICtrlSetState($AVI, $GUI_AVISTART) While 1 Switch GUIGetMsg() Case $Button MsgBox(0x30, 'Title', 'Text') Case -3 ExitLoop EndSwitch Sleep(20) WEnd GUIDelete() Edited March 30, 2009 by Authenticity
Rorka Posted March 30, 2009 Author Posted March 30, 2009 AVI is not depended on external events other than it's own. It's either playing it's own animation GUICtrlSetState($AVI, $GUI_AVISTART) or not playing it GUICtrlSetState($AVI, $GUI_AVISTOP). You can test it, make a gui with a button control and start the avi, pushing the button may popup a message box, if the avi animation keep looping then nothing will stop it but GUICtrlSetState($AVI, $GUI_AVISTOP) or program termination. Edit: Here, take a look: #include <GuiConstantsEx.au3> Dim $hGUI = GUICreate('Test', 200, 100) Dim $AVI = GUICtrlCreateAvi('shell32.dll', 150, 0, 0) Dim $Button = GUICtrlCreateButton('Button', 70, 70, 60, 25) GUISetState() GUICtrlSetState($AVI, $GUI_AVISTART) While 1 Switch GUIGetMsg() Case $Button MsgBox(0x30, 'Title', 'Text') Case -3 ExitLoop EndSwitch Sleep(20) WEnd GUIDelete() Okay now i really confused! lol
Authenticity Posted March 30, 2009 Posted March 30, 2009 (edited) The answer for your question, in short, is that yes, it's possible to play AVI animation while your script is downloading a file. Edited March 30, 2009 by Authenticity
trancexx Posted March 30, 2009 Posted March 30, 2009 The answer for your question, in short, is that yes, it's possible to play AVI animation while your script is downloading a file.You can cook meal too. But that is not related to Rorka's question. ♡♡♡ . eMyvnE
Authenticity Posted March 30, 2009 Posted March 30, 2009 (edited) lol trancexx. Fine, now I understand the question so it'll require a few tests. Edited March 30, 2009 by Authenticity
Rorka Posted March 31, 2009 Author Posted March 31, 2009 lol trancexx.Fine, now I understand the question so it'll require a few tests.I have some AVI's i can upload if you make some code to play while downloading it?
trancexx Posted April 1, 2009 Posted April 1, 2009 (edited) I have some AVI's i can upload if you make some code to play while downloading it?This means you won't upload otherwise? Edited April 1, 2009 by trancexx ♡♡♡ . eMyvnE
Rorka Posted April 1, 2009 Author Posted April 1, 2009 This means you won't upload otherwise?Well i dont really need to upload them yet....
xXUlTiMaTeSiNXx Posted April 2, 2009 Posted April 2, 2009 I think the correct term of what you want is "streaming". I'm new to AutoIT, please help me where you can.[size=10]Profanity is the one language that all programmers understand[/size]
Rorka Posted April 2, 2009 Author Posted April 2, 2009 I think the correct term of what you want is "streaming".Yes like youtube... its on there server and gets played to you via temp download
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