Author Topic: Problem (Bug?) with PlayVideo()  (Read 403 times)  Share 

TheMagician

    • I can help with proof reading
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Problem (Bug?) with PlayVideo()
« on: 05 Jun 2004, 13:49 »
Hi everyone,
I am working on the intro of my game and I use a *.avi file in the middle of it.

Now I read in the section of the manual about the PlayVideo() function:

     FLAGS can be one of the following:

     0: the video will be played at original size, with AVI audio
     1: the video will be stretched to full screen, with appropriate
        black borders to maintain its aspect ratio and AVI audio.
     10: original size, with game audio continuing (AVI audio muted)
     11: stretched to full screen, with game audio continuing (AVI audio muted)

I want the game background music (I tried both *.ogg and *.mp3) to keep playing when the video starts. So I set the flag to "10".

However, as soon as the video is started the game music stops and begins again after the video has stopped playing.

Any ideas regarding this problem?
Thanks
Stefan
     

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens TRAITOR
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Problem (Bug?) with PlayVideo()
« Reply #1 on: 05 Jun 2004, 20:34 »
Can you paste the exact PlayVideo() script command that you are using here? It's possible you got the parameters the wrong way round by accident.

TheMagician

    • I can help with proof reading
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re: Problem (Bug?) with PlayVideo()
« Reply #2 on: 05 Jun 2004, 20:49 »
Oh oh, Pumaman, I hope I wasn't  that stupid.

Here it is:

PlayVideo("Intro01.avi",10,1);

How about that?

TheMagician

    • I can help with proof reading
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re: Problem (Bug?) with PlayVideo()
« Reply #3 on: 06 Jun 2004, 15:07 »
I really got them mixed up ... sorry. ::)
It works okay now.
Stefan