Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Working on "Add YouTube" video

1

1131 views
Just a little update to let you know what I'm working on now.
I am adding the YouTube button to the Editor.

The idea is simple - you get the url of YouTube video from the YouTube video page - when you click on "Share"button and you see the Link to Video.

So basically you will be able to copy that link from YouTube, paste in a small form and video will be inserted to the Editor.

Only this is not that simple. Browsers don't allow embedded objects in edit mode, so I can't just add code of flash player. What I'm doing instead is using YouTube API to get some data including thumbnail and title of video, then insert just that thumbnail and it's linked to video on YouTube.

Then on the Question page when you click on the thumbnail instead of redirecting to YouTube page Javascript will replace that thumbnail with the flash player so videos will be played right on your page.

It's simple idea and it will make it possible to add Video to the Editor and everything will just look good and will work. It takes time to get the css and js part right.

It will also be configurable from !config.ini - admin can enable/disable the YouTube button in the Editor.

It should be ready in a day or two.

I was also writing more unit tests for the whole program and pushed new update to github. That update includes a fix for small possible security problem that had to do with search form.

 
asked May 25, 2011 at 3:05 PM

 US

2 Answers

0
 
Start testing!
You can use this "Youtube" button now.
Just add some videos to your question or answer and see if it worked.
It still not the 100% polished, but it works with both inserting video and then playing in by replacing thumbnail with actual player.


Confused? More about NextUp: http://youtube-global.blogspot.com/2011/05/introducing-stars-of-future-on-youtube.html Keep up to date on Twitter: http://twitter.com/#!/search/%23YTnextup The YouTube NextUp winners arrive in New York City for Day 1 of the YouTube NextUp Creator Camp!Confused? More about NextUp: http://youtube-global.blogspot.com/2011/05/introducing-stars-of-future-on-youtube.html Keep up to date on Twitter: http://twitter.com/#!/search/%23YTnextup The YouTube NextUp winners arrive in New York City for Day 1 of the YouTube NextUp Creator Camp!
flag
answered May 26, 2011 at 9:18 AM
0
 
nice feature!
btw do you planning to release lampcms editor as separate project? to use in other sites?
flag
answered May 25, 2011 at 3:25 PM

Your answer

Join with account you already have

FTTF

Preview

Alert