Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
media to play on panel #234280
11/01/08 22:48
11/01/08 22:48
Joined: Aug 2008
Posts: 8
rx8boy456 Offline OP
Newbie
rx8boy456  Offline OP
Newbie

Joined: Aug 2008
Posts: 8
I've tried using the code to play media on a panel. The sound comes up but the picture doesn't. Help

Also when i want it to start the game the media sound and picture fades out. Is that regarding media_handle

Re: media to play on panel [Re: rx8boy456] #234285
11/01/08 23:05
11/01/08 23:05
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
you'll need to post some of your code to see what is wrong.

First you need a bmap, that you can render the video to. It has to be a 16-bit image with no alpha channel.

are you using c-script or lite-c?

Re: media to play on panel [Re: DJBMASTER] #234287
11/01/08 23:08
11/01/08 23:08
Joined: Aug 2008
Posts: 8
rx8boy456 Offline OP
Newbie
rx8boy456  Offline OP
Newbie

Joined: Aug 2008
Posts: 8
c-script.

i think it might be the alpha
how do you cange it?

Re: media to play on panel [Re: rx8boy456] #234303
11/02/08 00:48
11/02/08 00:48
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
well try using a format that doensn't support the alpha channel, like .bmp or .pcx.

You will want something like this...
Code:
var video_handle;
bmap render_screen = "the bitmap.bmp";

panel renderer
{
pos_x=0;
pos_y=0;
layer=1;
bmap = render_screen;
flags = visible;
}

function play_on_bmap()
{
video_handle = media_play("movie.avi",render_screen,100); 
}


Any errors should be little syntax problems, i haven't used c-script for a long time, lol.

Last edited by DJBMASTER; 11/02/08 00:48.
Re: media to play on panel [Re: DJBMASTER] #235137
11/06/08 06:43
11/06/08 06:43
Joined: Aug 2008
Posts: 8
rx8boy456 Offline OP
Newbie
rx8boy456  Offline OP
Newbie

Joined: Aug 2008
Posts: 8
i tried the exact code
i can hear it but no picture comes up
is it something to do with the layers or the bitmap image?


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