Getting Video Object to Work in Windows XP
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 47
- Joined: Thu Jan 10, 2008 7:15 am
- Location: Redondo Beach, CA
- Contact:
Getting Video Object to Work in Windows XP
Livecode 6.4.3 (also tried later versions) saved as standalone with player object with .MOV (h.264 codec) video file. Plays great on Mac in player object and buttons added to start and stop it work. On Windows XP, with QT 7.7.6 installed, only the player object window appears, no video. The video plays fine on it's own in QT on Windows XP. Tried placing video in same folder and on desktop with app, nothing. Other simple features of the app work great. Authored on Mac OS 10.11. Thanks, Steve
-
- Posts: 47
- Joined: Thu Jan 10, 2008 7:15 am
- Location: Redondo Beach, CA
- Contact:
Re: Getting Video Object to Work in Windows XP
It looks like the path is wrong and can't link the video to the player object, just and empty window on XP. The only please for source requires a navigation to the video on my Mac, which I assume uses my Mac path to the video. That may be where the app is breaking on XP.
-
- Posts: 47
- Joined: Thu Jan 10, 2008 7:15 am
- Location: Redondo Beach, CA
- Contact:
Re: Getting Video Object to Work in Windows XP
Same issue on Windows 8.1, empty video object windows. On Mac videos are in the frames. Importing the .mov (h.264) file and using "play player id 1033" to play it works on Windows, but no controllers and you have to bloat the app with large videos. Sure seems like a path issue on the PC.
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Getting Video Object to Work in Windows XP
Post the file path you're using so we can see what you're working with.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 47
- Joined: Thu Jan 10, 2008 7:15 am
- Location: Redondo Beach, CA
- Contact:
Re: Getting Video Object to Work in Windows XP
Hi, Jacque! It's been years...
This script works on PCs for an imported video (but no controllers and bloats app with large video files):
play player id 1033 (see top of image provided)
For a Video Object approach, this is the only way to get a video to appear in it, by navigating to it:
/Users/stevecollins/Desktop/Edelbrock Programing/Videos/EdlebrockShort.mov. I tried entering the above "player id 1033" into the source area and several other paths, but no video comes up.
Ideally, I'd like to use a folder to hold videos and the Video Object that has the nice controllers to play the video in the stack. Can't seem to connect them on a PC, Windows XP or Windows 8.
Thanks,
Steve
This script works on PCs for an imported video (but no controllers and bloats app with large video files):
play player id 1033 (see top of image provided)
For a Video Object approach, this is the only way to get a video to appear in it, by navigating to it:
/Users/stevecollins/Desktop/Edelbrock Programing/Videos/EdlebrockShort.mov. I tried entering the above "player id 1033" into the source area and several other paths, but no video comes up.
Ideally, I'd like to use a folder to hold videos and the Video Object that has the nice controllers to play the video in the stack. Can't seem to connect them on a PC, Windows XP or Windows 8.
Thanks,
Steve
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Getting Video Object to Work in Windows XP
Hi back, nice to see you here.
You definitely don't want to embed the video, and you're probably right that the file path is wrong, but to really diagnose it we'd need to see the handler you're using to load the video. At any rate, if you are using a more recent version of LC (6.6.5, I think it was, or higher) then you can use the "resources" special folder path which will find the video in the right place in both the IDE and a standalone:
This assumes the video is relative to your stack; that is, the videos folder is in the same parent folder as your stack.
In earlier versions of LC you have to parse the path yourself:
When you build a standalone, include the videoclip folder in the Copy Files pane of Standalone Settings so the standalone will place them in the correct location. Also, both OS X and Windows have dropped support for QuickTime, so you may want to convert the videos to another format if you plan to run them on newer operating systems.
You definitely don't want to embed the video, and you're probably right that the file path is wrong, but to really diagnose it we'd need to see the handler you're using to load the video. At any rate, if you are using a more recent version of LC (6.6.5, I think it was, or higher) then you can use the "resources" special folder path which will find the video in the right place in both the IDE and a standalone:
Code: Select all
on loadVideo pVidName
put specialFolderPath("resources") & "/Videos/" & pVidName into tPath
set the filename of player id 1033 to tPath
end loadVideo
In earlier versions of LC you have to parse the path yourself:
Code: Select all
on loadVideo pVidName
put the filename of this stack into tPath
set the itemdel to slash
put "Videos/" & pVidName into last item of tPath
set the filename of player id 1033 to tPath
end loadVideo
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 47
- Joined: Thu Jan 10, 2008 7:15 am
- Location: Redondo Beach, CA
- Contact:
Re: Getting Video Object to Work in Windows XP
You're still amazing. That did it!
Thanks,
Steve
Thanks,
Steve