Page 1 of 1

re : video playback IOS

Posted: Sat Nov 05, 2011 10:04 am
by Es124
Hi,

1. i know that i do something wrong, but i don't know what ?

on mouseup
play video specialFolderPath ("engine") & "/Volumes/LaCie/Digital Publishing/The castle explorer/Chateau_Amboise_Royal_Folio kopie/OverlayResources/Cover/Cover with CIOR.mov"
end mouseup

on movieTouched
play stop
end movieTouched

2. Also is it normal that it takes so long to load a new card ( around 10 s. ) app is only 55 mb. testing on an iPad 1

Attachments

Schermafbeelding 2011-11-04 om 21.18.14.jpg

Re: re : video playback IOS

Posted: Sat Nov 05, 2011 11:04 am
by Dixie
Hi...

Here is a script that will play a 'movie' on your ipad when a card opens... It seems that you are a little more than confused about the names of commands in liveCode.... Also have a look at page 47 of the iOS release notes about using the MPPlayerControl in iOS

Code: Select all

local theMovie

on openCard
   if the environment is "mobile" then
      if "theMovie" is among the lines of iphoneControls() then controlDelete
      
      iphoneControlCreate "player", "theMovie"
      iphoneControlSet "theMovie", "filename", specialFolderPath("engine") & "/swings.mp4"
      iphoneControlSet "theMovie", "rect", "192,142,836,642"
      iphoneControlSet "theMovie", "preserveAspect", true
      iphoneControlSet "theMovie", "showController", true
      iphoneControlSet "theMovie", "visible", true
      
      --iphoneControlSet "theMovie", "fullscreen", true
      --iphoneControlDo "theMovie", "play"
   end if
end openCard

on closeCard
   controlDelete
end closeCard

on controlDelete
   iphoneControlDelete "theMovie"
end controlDelete
hope it helps,

Dixie

Re: re : video playback IOS

Posted: Sat Nov 05, 2011 12:10 pm
by Es124
Hi,

now i'm completely lost .
Do i past :

local theMovie

on openCard
if the environment is "mobile" then
if "theMovie" is among the lines of iphoneControls() then controlDelete

iphoneControlCreate "player", "theMovie"
iphoneControlSet "theMovie", "filename", specialFolderPath("engine") & "/swings.mp4"
iphoneControlSet "theMovie", "rect", "192,142,836,642"
iphoneControlSet "theMovie", "preserveAspect", true
iphoneControlSet "theMovie", "showController", true
iphoneControlSet "theMovie", "visible", true

--iphoneControlSet "theMovie", "fullscreen", true
--iphoneControlDo "theMovie", "play"
end if
end openCard

on closeCard
controlDelete
end closeCard

on controlDelete
iphoneControlDelete "theMovie"
end controlDelete


and only chance "/swings.mp4" with my ".mov" location form the standalone app. ?

Re: re : video playback IOS

Posted: Sat Nov 05, 2011 12:14 pm
by Dixie
Hi...

'swings.mp4' is the file name of a movie to play in the above script... You will have to substitute that name with the filename of your movie that you wish to have play in the MPPlayerControl on your iPad...

Dixie

Re: re : video playback IOS

Posted: Sat Nov 05, 2011 1:00 pm
by Es124
Hi Dixie

it just give me a black rectangle.
Do i have to chance the .mov file into a m4v file ?



greetings,
Enno

Re: re : video playback IOS

Posted: Sat Nov 05, 2011 1:30 pm
by Dixie
Enno...

Can you mail me the movie you wish to play 'offlist'...
john@ihouse.on-rev.com

be well

Dixie

Re: re : video playback IOS

Posted: Sat Nov 05, 2011 1:51 pm
by Es124
Hi Dixie,

email send.