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

BNig niggemann at
Sat Dec 11 15:02:42 EST 2010

Hi David,

I don't get what you mean. 
The code downloads a movie file to the iPhone. You can then play it as often
as you want. It is stored in a folder, in this case the "cache" folder. The
cache folder is not backed up by iTunes.
If you would download the movie into the "Documents" folder iTunes would
even back that up.

If you mean to automatically capture a stream to a folder: that I don't know
how to do.

Kind regards


David Bovill-5 wrote:
> Thanks again Bernd....  ideally you would be able to stream a movie then
> after you had played it, or it had all downloaded save it to a folder :)
> On 11 December 2010 10:18, BNig <niggemann at> wrote:
>> 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
>> "
>> "
>> into URL tMyPath
>>   end if
>> end mouseUp
>> -------------------------------
>> Kind regards
>> Bernd
View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the Use-livecode mailing list