Page 1 of 1

IOS movie Play

Posted: Tue Dec 21, 2010 7:20 pm
by rodneyweast
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.

Re: IOS movie Play

Posted: Tue Dec 21, 2010 8:04 pm
by Klaus
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

Re: IOS movie Play

Posted: Tue Dec 21, 2010 9:33 pm
by rodneyweast
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.

Re: IOS movie Play

Posted: Tue Dec 21, 2010 9:45 pm
by bn
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

Re: IOS movie Play

Posted: Tue Jan 18, 2011 1:44 am
by interactbooks
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?

Re: IOS movie Play

Posted: Tue Jan 18, 2011 1:59 am
by jeanvouillon
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"

Re: IOS movie Play

Posted: Tue Jan 18, 2011 2:31 am
by interactbooks
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.

Re: IOS movie Play

Posted: Tue Jan 18, 2011 3:59 am
by jeanvouillon
Yeah! Great! :D
I love this forum!