iOS: how to play a video file from a url?

BNig niggemann at uni-wh.de
Sat Dec 11 05:18:13 EST 2010


Hi David,

here is a way to download a movie once and store it on the iPhone for
repeated showing from the local file, also between restarts of the app. You
would have to know the URL beforehand.
----------------------
on mouseUp
   put "LanoKurz-iPhone-cell.3gp" into tMovie
   put specialfolderpath("cache") & "/" into tMypath
   put tMovie after tMyPath
   if there is a file tMyPath then
      play video tMyPath
   else
      answer "will download the file"
      put "binfile:" before tMyPath
      put URL
"http://berndniggemann.on-rev.com/movieRevlet/movie/LanoKurz-iPhone-cell.3gp"
into URL tMyPath
   end if
end mouseUp
-------------------------------

Kind regards

Bernd

-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-how-to-play-a-video-file-from-a-url-tp3082721p3083164.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the Use-livecode mailing list