Putting a You tube video on a card

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Ellery
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 6
Joined: Tue Feb 26, 2013 9:10 pm

Putting a You tube video on a card

Post by Ellery » Tue Mar 26, 2013 7:06 pm

I was wondering what is the best way to display a youtube video in your app specifically having a card display a video on it and having multiple cards for each video I want in the app? If anyone has had any luck doing this or could point me in the right direction I would really appreciate it. Thank you so much.
Ellery

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Putting a You tube video on a card

Post by shaosean » Tue Mar 26, 2013 8:22 pm

I can think of two ways to do this..

1. Grab the MP4 URL from the website and play it in a movie player control
- this will require you to parse the html and download the video file.. you will also need to update your app when YouTube makes changes to their html format

2. Use the embed video feature and create a template HTML page where you can just insert the code for each video and then play the video through a revBrowser control..

Ellery
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 6
Joined: Tue Feb 26, 2013 9:10 pm

Re: Putting a You tube video on a card

Post by Ellery » Tue Mar 26, 2013 8:25 pm

I really like the second idea! Thank you so much I will try this and post my results on here!

Post Reply