problem with wiindows standalone playing video

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
howeyb
Posts: 7
Joined: Tue Jul 21, 2009 9:42 pm

problem with wiindows standalone playing video

Post by howeyb » Wed Jan 04, 2012 3:55 am

I have a stack (created on a Mac) that plays a .mov video using a player. The mac standalone works fine. The windows standalone (.exe file) works on some PC laptops in my office, but on my husband's HP laptop (windows 7) the video won't play. He has quicktime installed and the videos play fine independently, but not when I run the .exe standalone. It seems that the standalone can't launch quicktime . It seems odd that the videos play on some pc's and not others. Any idea of the problem? I put the file path into the message box and it's going to the right place. We also reinstalled quicktime on the HP and that didn't help.

set the itemdel to "/"
get the filename of this stack
delete the last item of it
put it into OPATH

set the filename of player "video" to OPATH&"/videos/"&VIDID&".MOV" --VIDID is the filename of the movie in the "video" folder located in the same folder as the standalone stack files
start player "video"

Thanks,

Betty
howeyb

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

Re: problem with wiindows standalone playing video

Post by Mark » Wed Jan 04, 2012 11:59 am

Hi Betty,

You might want to include a check to see if the file is really there in your script:

Code: Select all

set the itemdel to "/"
get the filename of this stack
delete the last item of it
put it into OPATH
put OPATH&"/videos/"&VIDID&".MOV"  into myFile
if there is a file myFile then
  set the filename of player "video" to 
  start player "video"
else answer error "Can't find movie file."
What is the codec of your mov file? Note that mov is only a wrapper and could include a codec that isn't available on your husband's laptop. If your husband has a simple netbook for instance then it is possible that the video processor can't cope with the high resolution or many frames of your movie file and gives up (even though a crash might be more likely in this case).

What happens if you include the player with the reference to the movie file in an otherwise completely empty stack and try to play that?

Kind 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

Post Reply