Sign in to follow this  
Followers 0
Rorka

Play AVI while downloading?

13 posts in this topic

Okay, well is it possible to play an AVI, while it is downloading kinda like YouTube?

Thanks

Share this post


Link to post
Share on other sites



I think so. AVI stop playing it's animation on the moment GUICtrlSetState($AVI, $GUI_AVISTOP) get called, or upon program termination. ;]

Share this post


Link to post
Share on other sites

So if i downloaded 1% of it then played it using Autoit, it would continue when more was downloaded?

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Authenticity

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by Authenticity

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

lol trancexx.

Fine, now I understand the question so it'll require a few tests.

Edited by Authenticity

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

This means you won't upload otherwise?

Well i dont really need to upload them yet....

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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 :D

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