quicktime plays 1/2 off window in osx standalone ONLY

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
HIKER545
Posts: 4
Joined: Fri Nov 24, 2006 4:07 am

quicktime plays 1/2 off window in osx standalone ONLY

Post by HIKER545 » Fri Feb 02, 2007 9:11 pm

Trying to embed quicktime with some tutorial stacks. Do not want to use dragable, player or external source. Made a button that when clicked runs a simple script "play audioClip 'xxx.mov'" and works fine in Mac development and PC development and pc standalone, but NOT in OSX standalone.

on after the movie plays 1/2 off screen the first time and finishes, reclicking the button will run the vedio fine, centered if no loc has been included in the script.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Feb 02, 2007 11:04 pm

HIKER545,

What happens if you replace "audioClip" with "videoClip" in your script? If that doesn't help, it might be useful if you posted your entire script here.

Best regards,,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

HIKER545
Posts: 4
Joined: Fri Nov 24, 2006 4:07 am

thanks for the reply Mark

Post by HIKER545 » Sat Feb 03, 2007 5:42 am

Wow I botched that post. The script was with play vedioClip not audioClip--as I was posting a class of 24 first graders quite unexpectedly arrived before I could edit it, sorry.

Using revolution studio 2.7.4 on an HP tablet with XP operating system
I made a single stack, with a single card. On that card I placed a button. I imported in as a control a video file named "test.mov" The test.mov file was made on a Mac running OSX version 4.5 and brought over to the HP

I added a very simple script to the button as follows:

on mouseUp
play videoClip "test.mov"
end mouseUp

no other objects or scripts were added to this test stack at this time.

while in the development stack I stwich to the browse mode and the
script worked fine--placing the video in the center of the window.

I saved it as a standalone for Windows and Mac X

the standalone for the window platform worked fine
the standalone for the mac X platform put only about 1/2-1/4 of the
video image in the top left hand of the window. After the clip played thru once, I clicked the button and it ran fine in the middle of the window. Seems only the first run after opening the standalone is messed up.

I then remade the same test stack and script on a Mac running X.4.5

the standalones worked the same--fine on the windows platform and
1/2-1/4 on screen in the top left hand of window. for mac x platform on first run, and fine after that.

I tried adding a location to the script like

on mouseUp
play videoClip "test.mov" at 200, 200
end moueUp

This did effect the video placement but not on the first run on the Mac X standalone.

I then tried the original script with a diff movie clip--the intro clip from imovie thinking maybe it was an error related to the video file. Still got the same results

I am a weak coder, no real training just learning as I go, so I apprciate the help.

HIKER545
Posts: 4
Joined: Fri Nov 24, 2006 4:07 am

STILL STUCK

Post by HIKER545 » Fri Feb 16, 2007 5:15 am

STILL NOT ABLE TO FIGURE WHY IT WORKS IN BOTH MAC AND XP DEVELOPMENT AND MAC STANDALONE BUT NOT IN XP STANDALONE

marielle
Livecode Opensource Backer
Livecode Opensource Backer

Re: STILL STUCK

Post by marielle » Sat Feb 17, 2007 11:18 pm

HIKER545 wrote:STILL NOT ABLE TO FIGURE WHY IT WORKS IN BOTH MAC AND XP DEVELOPMENT AND MAC STANDALONE BUT NOT IN XP STANDALONE
Could it be an issue with the path, the fact that what you use as file path is "test.mov" and that it doesn't know where to find it from within the XP standalone? (though another of your post mentions "but NOT in OSX standalone.").

What and where do you teach, btw?
Marielle

andres
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 68
Joined: Thu Jan 04, 2007 2:24 am

Post by andres » Tue Jun 03, 2008 2:13 pm

Hello

I am having the same problem on the OSX build (have not tried yet on Windows).

Did you solve this problem?

Andres

andres
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 68
Joined: Thu Jan 04, 2007 2:24 am

Post by andres » Wed Jun 04, 2008 6:03 pm

Hello

This is a workaround to the problem...

Use a very small blank movie
Play it first
Wait a few milliseconds
Then play your movie

Andres

Post Reply