Video size? [SOLVED]

Started by Candle, Tue 08/02/2005 05:59:37

Previous topic - Next topic

Candle

Can I control the sizeÃ,  of the video ? it is only like 128 by 128 but it wants to play full screen so how can I make it play at 128 by128 ?

LeChuck

According to the manual:

Quote
PlayVideo

PlayVideo (string filename, int skip, int flags)

Plays an AVI or MPG file, or any other file type supported by Media Player.

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)

SKIP defines how the player can skip the video:

0 player can't skip video

1 player can press ESC to skip video

2 player can press any key to skip animation

The game is paused while the animation plays.


You'd probably want PlayVideo("filename.avi", 1, 0);

Candle

Thank you , dang I missed that and I did look .

m0ds

Apologies for dragging up an old thread, but this question seemed to relate during a search.

I'm having a slight problem, that only started a couple of days ago.

I have video files and all of them were working fine and playing in full screen.

However, for some reason now the first video always plays with a black box around it, as if its size has been reduced by the engine, but all the other videos are still playing in complete full screen. My flags are always set to 0, so what could have happened?

Any ideas are appreciated :)

Gilbert

Does that video have a different resoluion from the others?

m0ds

Nope, they're all the same size.

And now I have one other issue - when I asked AGS to leave the game audio playing, at one point in the video, the music skips in the same way every time, doesnt affect the video though.

Oh and I forgot to mention, this is in AGS 2.72, so I understand if I cant get help on this now. I'll keep tinkering though, see if I can fix it. If not, it's not a major problem. The games crap anyway :P

Cheers Gil....BAT CHUNG!!!!!

SMF spam blocked by CleanTalk