re : video playback IOS
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
re : video playback IOS
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
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
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
hope it helps,
Dixie
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
Dixie
Re: re : video playback IOS
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. ?
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
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
'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
Hi Dixie
it just give me a black rectangle.
Do i have to chance the .mov file into a m4v file ?
greetings,
Enno
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
Enno...
Can you mail me the movie you wish to play 'offlist'...
john@ihouse.on-rev.com
be well
Dixie
Can you mail me the movie you wish to play 'offlist'...
john@ihouse.on-rev.com
be well
Dixie
Re: re : video playback IOS
Hi Dixie,
email send.
email send.