Gamestudio Links
Zorro Links
Newest Posts
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
ZorroGPT
by TipmyPip. 10/24/26 01:54
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 7,856 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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