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 / Issues playing video - one video plays, the second is not seen after the first is played

Author
Message
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 7th Jun 2013 19:08
I am able to play video. However, once I play one video the next video does not play. I am waiting for the video to finish before starting the next. When I try playing the second video there is a "pause" as if waiting for the video to finish like with the first video, but there is nothing played.

Has anyone come across this issue?

I thought at first that my IF statements might have been quirky. I tried different IF statement structuring, but it always acted the same.

It appears that once the first video plays (and I can play it more than once) a second video will not play. If it does, play it is not showing in area zero like it should. But it seems like something is happening because of the pause waiting for the video to finish.

I know that I will get a response about seeing my code. But being a software developer in test automation, I do not think it is my code that is to blame. I have been over it several times and there are no logic issues. But there may be an ignorance of Dark Basic.

I will try deleting the first video before playing the second to see what happens. Do I need to clear the bitmap area before trying to play another video? I have tried this a few months ago and I did not have this issue. The only difference I can see is that previously I displayed an image in between the videos. That is the ONLY difference. Perhaps that is the key?

NOTE: The second video plays if I play it first. Each video plays depending on where on the screen the mouse is clicked. I have a feeling I may need to go GDK on this.

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 16th Jun 2013 22:32
Thanks for the plethora of responses.

I am assuming that only two videos can be in the screen buffer (one on top of the other). I am now playing one video then deleting the other right after. That way the next loaded video will play. Works so far...


IF TOG_01 = 0 THEN animLoad=2: animDel=1: TOG_01 = 1: ELSE animLoad=1: animDel=2: TOG_01 = 0
LOAD ANIMATION (vidPath$+Locus$+locDIR$+".mov"), animLoad
DELETE ANIMATION animDel
PLAY ANIMATION animLoad,0,vidLeft,vidUpper,vidRight,vidLower

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)

Login to post a reply

Server time is: 2026-07-06 20:31:18
Your offset time is: 2026-07-06 20:31:18