Can someone please help me script to play videos? I'm using the code from AUM 56 and running A6 COMM. Could someone look at this code and tell me why it wont play the video:
var video_mode = 7; // 800x600 pixels
var video_depth = 32;
path "C:\\Program Files\\GStudio6\\MAIN FOLDER"; // path to .wdl and .avi files
var movie_handle;
function play_movie();
function play_movie()
{
movie_handle = media_play("my_movie.avi", null, 100);
while (media_playing (movie_handle) == 0) // wait until the movie starts playing
{
wait (1);
}
while (media_playing (movie_handle) != 0) // wait until the movie has stopped
{
wait (1);
}
}
function main()
{
play_movie();
}