Play a movie from a website
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Play a movie from a website
I am attempting to have my app play a video clip. The clip is on a website & I have the URL. Do I need to download the clip or is there a way to play it without downloading the file first? The clip is stored on Vimeo.
Tom
Tom
Re: Play a movie from a website
What format is the video clip in? Is it a private video (i.e., you don't want someone else to see it for personal or commercial reasons), or is it a video that anyone can view, such as for testing out a handler? Is the app for desktop or mobile?
LiveCode, as far as I understand, treats any url as well as any other, local or on a server. If we are talking about the internal 'player' object, it should be as simple as somethingi like
...on desktop.
On mobile, I think it would be something like
... which plays whatever video you name full screen.
Both player and play video are in the dictionary as such.
LiveCode, as far as I understand, treats any url as well as any other, local or on a server. If we are talking about the internal 'player' object, it should be as simple as somethingi like
Code: Select all
set the filename of player "My Player" to "SecondMovie.mov"
On mobile, I think it would be something like
Code: Select all
play video "http://www.livecode.com/buildanapp.mp4"
Both player and play video are in the dictionary as such.
Re: Play a movie from a website
Hi,
I have tried to follow the instructions from the following lesson:
http://lessons.livecode.com/m/4069/l/29 ... -on-mobile
The only difference in what I'm trying to do and what they do in the lesson is in the lesson the video file exists inside the app. I am trying to play a video located on a Vimeo server. I'm pretty sure this can be done but the Dictionary and the above-referenced lesson are not very clear to me as to exactly how.
Tom
I have tried to follow the instructions from the following lesson:
http://lessons.livecode.com/m/4069/l/29 ... -on-mobile
The only difference in what I'm trying to do and what they do in the lesson is in the lesson the video file exists inside the app. I am trying to play a video located on a Vimeo server. I'm pretty sure this can be done but the Dictionary and the above-referenced lesson are not very clear to me as to exactly how.
Tom
Re: Play a movie from a website
Sorry, looks like that lesson is geared towards playing a video on mobile, for which I have no setup to test with nor any experience developing on.
Since it appears your talking about mobile, though, did you try that second listing from the dictionary? Or is it that you do not want the video to play full screen?
Hopefully someone that does work with mobile will chime in with a more solid answer for you though.
Since it appears your talking about mobile, though, did you try that second listing from the dictionary? Or is it that you do not want the video to play full screen?
Hopefully someone that does work with mobile will chime in with a more solid answer for you though.
Re: Play a movie from a website
I would have to wonder whether it is the platform/url target being the issue, as bogs asked at first.
If you try on a desktop PC and use a media player such as VLC or whatever, and give it the url, will it play? If we can ensure the url will feed the video directly (without being surrounded by the Vimeo web page) then we can go ahead with the mobile player code.
If you try on a desktop PC and use a media player such as VLC or whatever, and give it the url, will it play? If we can ensure the url will feed the video directly (without being surrounded by the Vimeo web page) then we can go ahead with the mobile player code.
Re: Play a movie from a website
Thank You Bogs and Sparkout,
It appears that the Vimeo web page gets in the way.
Guess I'll need to include a couple of videos in the stack downloaded from Vimeo.
Thanks
Tom
It appears that the Vimeo web page gets in the way.
Guess I'll need to include a couple of videos in the stack downloaded from Vimeo.
Thanks
Tom
Re: Play a movie from a website
Well, looking at the embed link generated by Vimeo, it doesn't look like it goes directly to a file, but to a reference.
Curious, did you try using the browser widget to see if it plays in that? From what I saw in the link, it looks like you can set the size of the player just like the old days. If it plays in the browser widget, it might work well enough for your purposes.
Curious, did you try using the browser widget to see if it plays in that? From what I saw in the link, it looks like you can set the size of the player just like the old days. If it plays in the browser widget, it might work well enough for your purposes.