Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Black screen when trying to start movie files.

Author
Message
Elhaym
15
Years of Service
User Offline
Joined: 22nd Dec 2010
Location:
Posted: 24th Dec 2010 07:48
Hello, I am currently a new user of darkbasic pro and it is giving me quite a problem.

Can someone please take a look at my code and see what I am doing wrong?



Also I have tried many video codec's none seem to work...I do get audio though :/
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 24th Dec 2010 16:02
I don't think your problem has anything to do with movie files. Your loop logic looks confused. You might be able to see the problems yourself if you indented your code sensibly. Try that first and come back if you're still stuck.
Elhaym
15
Years of Service
User Offline
Joined: 22nd Dec 2010
Location:
Posted: 25th Dec 2010 02:27
Thanks ummm...Green Gandalf!

But I found the problem:

'get resolution of the movie
Width = ANIMATION WIDTH(1)
Height = ANIMATION HEIGHT(1)
X = 320 - Width / 2 <This needed setting to 1
Y = 240 - Height / 2 <This needed setting to 1

But thanks anyway...Works fine now!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Dec 2010 12:22
Happy Xmas!

Login to post a reply

Server time is: 2026-07-21 20:34:44
Your offset time is: 2026-07-21 20:34:44