Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by MonsterX. 12/05/25 02:43
ZorroFix. ini /data and /log path
by Martin_HH. 12/02/25 11:42
Parameter selection
by jcl. 12/01/25 12:28
ZorroGPT
by TipmyPip. 11/29/25 09:38
webGL
by Ezzett. 11/27/25 23:22
Chart viewer
by clint000. 11/27/25 21:21
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 20,786 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
agasior, mosfet, MonsterX, KF_Investments, Luuk
19186 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Wait for movie #413081
12/07/12 17:10
12/07/12 17:10
Joined: Apr 2011
Posts: 75
Malta
E
Ercoles Offline OP
Junior Member
Ercoles  Offline OP
Junior Member
E

Joined: Apr 2011
Posts: 75
Malta
I need to play a movie with media_play and want the program to wait until the movie has finished before continuing with the next line of code.

Can someone tell me how to do that?

Re: Wait for movie [Re: Ercoles] #413084
12/07/12 17:31
12/07/12 17:31
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Fetch the movies handle when playing it and wait until media_playing returns zero for that handle:

http://www.conitec.net/beta/amedia_play.htm

http://www.conitec.net/beta/amedia_playing.htm


Always learn from history, to be sure you make the same mistakes again...

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1