Jump to content

Sign in to follow this  
Coffeecat

Video Playback-1.56-how to use it?

Recommended Posts

i just wanna try the new feature. i downloaded the converter from the biki page

http://community.bistudio.com/wiki/Dialog_Control#Videos

converted it to ogv and put it in my mission folder.

this is in my desciption.ext:

class MyVideoExample { 
/* ... same as the picture example, with addition of */
text = "myVideo.ogv";
autoplay = 1;
loops = 10;
};

how do i play the video now with a trigger?

Share this post


Link to post
Share on other sites

You may also need the 'style' setting?

Pretty f'n fantastic, though, if it works! :D

Share this post


Link to post
Share on other sites

ya works great! only bad thing is that you have to dl much larger files now. i personally dont care, since dsl 6000 is allready enough for me:)

Share this post


Link to post
Share on other sites

Cool! Any chance of uploading a youtube of it working or something? :) Also - your final snippet that works? :)

Share this post


Link to post
Share on other sites
  Quote
Suspending not allowed in this context

Error in expression <]] spawn bis_fnc_playVideo; waitUntil {scriptDone _video};>

Error position: <scriptDone _video};>

Error Generic error in expression

Warning Message: Resource title RscMissionScreen not found

Just tried that example mission...

Not sure if the first line was related - hard to see in the .rpt.

Any ideas? :(

Share this post


Link to post
Share on other sites

Here's one that I'm needing help on concerning video playback, and figured this is a good starting point.

A quick run-down on what I'm trying to do: When called up, a Lifepak heart monitor comes up, and when it does, a video that I made in Adobe After Effects of a heart rhythm plays behind the overlay (heart monitor).

I've held off asking this question to make sure I could read all of the documentation on BIS' wiki, on here, and all about dialog and button creation.

My code is listed below, when the player clicks on "Area 1" the video should play.

#define CT_STATIC		0
#define CT_BUTTON		1
#define ST_CENTER		0x02
#define ST_PICTURE		48
#define ST_BACKGROUND		80

class lp15 {
idd = 1;
movingEnable = false; 
onLoad = "";


class controlsBackground {
	class noartback{
			idc = -1; 
			type = CT_STATIC;
			style = ST_PICTURE;
			colorBackground[] = { };
			colorText[] = { };
			font = BitStream;
			sizeEx = 0.023;
			moving = true;
			x = -0.27; y = -0.4;
			w = 1.4; h = 1.75;
			text = "lp15\GUI\ekg1.paa";
		};

	class MyButton { 
			idc = -1; 
			type = CT_BUTTON; 
			style = ST_CENTER; 
			default = false; 
			font = Bitstream; 
			sizeEx = 0.03; 
			colorText[] = { 0, 0, 0, 1 }; 
			colorFocused[] = { 1, 0, 0, 0 }; // border color for focused state 
			colorDisabled[] = { 0, 0, 0, 0 }; // text color for disabled state 
			colorBackground[] = { 0, 0, 0, 0 }; 
			colorBackgroundDisabled[] = { 1, 1, 1, 0.5 }; // background color for 

disabled state 
			colorBackgroundActive[] = {  1, 1, 1, 0 }; // background color for 

active state 
			offsetX = 0.003; offsetY = 0.003; 
			offsetPressedX = 0.002; offsetPressedY = 0.002;
			colorShadow[] = { 0, 0, 0, 0 }; 
			colorBorder[] = { 0, 0, 0, 0}; 
			borderSize = 0; 
			soundEnter[] = { "", 0, 1 }; // no sound 
			soundPush[] = {}; 
			soundClick[] = { "", 0, 1 }; // 
			soundEscape[] = { "", 0, 1 }; //no sound 
			x = 0.769; y = 0.095; 
			w = 0.24; h = 0.25; 
			text = "Area 1";
			action = "["EKGvid.ogv",[-0.6,-0.5,2.2,2]] spawn bis_fnc_playVideo;  

waitUntil {scriptDone _video}";

		};

As always, any help would be appreciated and documented in the credits. Thanks

Share this post


Link to post
Share on other sites

Also, can someone post a youtube vid or something of this working? :)

Share this post


Link to post
Share on other sites

Video Playback is still lagging for me, even after the fix. Maybe its possible to take a look at it again? Its a really nice feature but if videos are not playing smooth its useless...

Share this post


Link to post
Share on other sites

Is it possible that you could use this function to make a video run for a multiplayer intro instead of a basic moving cam script?

Share this post


Link to post
Share on other sites
  Bigpickle said:
Is it possible that you could use this function to make a video run for a multiplayer intro instead of a basic moving cam script?

That's why I've been reading this thread ... .....

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×