Hi,
I've got a simple project, couple of cards that link up, two cards have a video player on it.
The video get set dynamically as I need to be able to swap the actual video file.
Got it woking on OSX [10.11] but no video appears under Win 10 or 8.1. I can open the videos fine in Windows Media Player.
Using Livecode 8.1.1.
Can't figure out why it would not work. Is there a codec recommendation to use for Windows?
Thanks,
Bert
Video player and windows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 38
- Joined: Thu Jun 28, 2012 2:48 pm
- Location: West-Cork, Ireland
- Contact:
Re: Video player and windows
Hi Bert,
what format does the video have?
Maybe this posting of mine (and the complete thread actually) will help a bit:
http://forums.livecode.com/viewtopic.ph ... 80#p143148
Best
Klaus
what format does the video have?
Maybe this posting of mine (and the complete thread actually) will help a bit:
http://forums.livecode.com/viewtopic.ph ... 80#p143148
Best
Klaus
-
- Posts: 38
- Joined: Thu Jun 28, 2012 2:48 pm
- Location: West-Cork, Ireland
- Contact:
Re: Video player and windows
Hi Klaus,
Thanks for your reply. Indeed I saw the post before but didn't help me.
What seems to happen is that the player is very erratic when dynamically setting the video. Sometimes it works others it doesn't.
I've tried 1 player on a card, click button on main menu, put the video name in a global, arriving at the player card set the filename of the player [I've determined the app path on start up].
I've tried 2 different players on two cards, one for each video and setting the filenames on start up when opening the stack.
Checking the filenames for the players tells me that's all good, any variation I've used points to the correct video, sometimes it plays, sometimes one plays, sometimes none, it's driving me crazy!
I'm still converting some projects from Director and I do a lot of fairly simple projects with video and opening files. Run of the mill stuff and was looking forward to being able to use a nice build in player, set the filename and be done. In Director I had a made a flash player that played mp4's. Always worked.
The reason I want to use Livecode for this one is that it goes onto DVD as a ROM part. If I use director for that the Mac version will always throw a Shockwave error [won't go into that...] so using Livecode was supposed to be the solution.
Bert
Thanks for your reply. Indeed I saw the post before but didn't help me.
What seems to happen is that the player is very erratic when dynamically setting the video. Sometimes it works others it doesn't.
I've tried 1 player on a card, click button on main menu, put the video name in a global, arriving at the player card set the filename of the player [I've determined the app path on start up].
I've tried 2 different players on two cards, one for each video and setting the filenames on start up when opening the stack.
Checking the filenames for the players tells me that's all good, any variation I've used points to the correct video, sometimes it plays, sometimes one plays, sometimes none, it's driving me crazy!
I'm still converting some projects from Director and I do a lot of fairly simple projects with video and opening files. Run of the mill stuff and was looking forward to being able to use a nice build in player, set the filename and be done. In Director I had a made a flash player that played mp4's. Always worked.
The reason I want to use Livecode for this one is that it goes onto DVD as a ROM part. If I use director for that the Mac version will always throw a Shockwave error [won't go into that...] so using Livecode was supposed to be the solution.
Bert
Re: Video player and windows
Hm, another idea, but then I am out of them, is to add a little dealy when switching filenames of player object.
That had helped in earlier versions of Livecode, do something like this:
No idea if this still applies, but is at least worth a try
That had helped in earlier versions of Livecode, do something like this:
Code: Select all
...
lock screen
set the filename of player "xyz" to EMPTY
wait 5
set the filename of player "xyz" to the_new_filename
unlock screen
...
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Video player and windows
Can you post the parts of the script that manage playback? Do you issue any play commands after setting the filename?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com