Monday 27 October 2008 12:35:54 pm
I would do it like Andrew said. Use an URL attribute and just save the URL.
Then you are able to make changes on the embed code. Maybe give them a choice, to save the url, the Video-ID or the embed code. Saving the Video-ID only would be the best solution, but thats maybe to difficult (not realy but i have seen a lot of weird things...) for some unexperienced internet Users. As example, you are allowed to choose the size of the youtube player. If you use the embed code, you have to hack the embed code to resize the player on different views. Maybe today you think the width should be 500 px, tomorrow it should be 350 px. If you save the URL you can extract the Video-ID and generate the embed code dynamicly. This will work on the most Video network Sites i know. There are also a lot of APIĀ“s for youtube and other Sites. Google is your friend.
|