IOS movie Play

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rodneyweast
Posts: 2
Joined: Tue Dec 21, 2010 7:09 pm

IOS movie Play

Post by rodneyweast » Tue Dec 21, 2010 7:20 pm

I can't get movie to play unless I use the following command

on mouseUp
play video specialFolderPath("engine") & "/testfilename.m4v" into file_path
end mouseUp

On IOS the documentation simply says:

play video-file

not

play video video-file

is this a typo in the documentation?

using the command with the video keyword seems to work.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: IOS movie Play

Post by Klaus » Tue Dec 21, 2010 8:04 pm

Hi Rodney,
rodneyweast wrote:...
on mouseUp
play video specialFolderPath("engine") & "/testfilename.m4v" into file_path
end mouseUp
This really works? :shock:

In that line you are mixing two commands into one!
1. Fill the variable file_path with the path to the video
2. Use the "play video" command in the same line.

Try this:

Code: Select all

on mouseUp
   put specialFolderPath("engine") & "/testfilename.m4v" into file_path
   play file_path
end mouseUp
The docs read: play {video-file | video-url}
So you could also supply an internet url to the play command.


Best

Klaus

rodneyweast
Posts: 2
Joined: Tue Dec 21, 2010 7:09 pm

Re: IOS movie Play

Post by rodneyweast » Tue Dec 21, 2010 9:33 pm

This, absolutely does not work on my machine.

on mouseUp
put specialFolderPath("engine") & "/testfilename.m4v" into file_path
play file_path
end mouseUp

If i place the word video before file_path, it works fine.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: IOS movie Play

Post by bn » Tue Dec 21, 2010 9:45 pm

Hi Rodney,

the documentation is, well, not as clear as one might hope.

If you want to play video you have to specify

Code: Select all

play video pathToVideoFile
It took me some time to figure it out.

for sound just

Code: Select all

play pathToSoundFile
is ok.

Kind regards

Bernd

interactbooks
Posts: 65
Joined: Thu Oct 07, 2010 4:47 pm

Re: IOS movie Play

Post by interactbooks » Tue Jan 18, 2011 1:44 am

I'm able to play a movie, but do not see any controls to pause/stop the movie, or close the movie window. Any ideas on how to activate these?

jeanvouillon
Posts: 21
Joined: Sat Jan 15, 2011 6:40 pm

Re: IOS movie Play

Post by jeanvouillon » Tue Jan 18, 2011 1:59 am

Hi,

I'm able to display the controller, but it doesn't work (Is it normal or am I missing something?)...

set the showController of the templatePlayer to true
play video specialFolderPath("engine") & "/video/myvideo.mp4"

interactbooks
Posts: 65
Joined: Thu Oct 07, 2010 4:47 pm

Re: IOS movie Play

Post by interactbooks » Tue Jan 18, 2011 2:31 am

I was able to use the line of code you provided to show the controller and everything is working perfectly. I would suggest to make sure you are using version 4.5.3 of LiveCode.

jeanvouillon
Posts: 21
Joined: Sat Jan 15, 2011 6:40 pm

Re: IOS movie Play

Post by jeanvouillon » Tue Jan 18, 2011 3:59 am

Yeah! Great! :D
I love this forum!

Post Reply