?
Solved

need a suggestion of a player which can be easily customised

Posted on 2011-10-18
3
Medium Priority
?
169 Views
Last Modified: 2012-05-12
i have a requirement where admin will be adding urls of his youtube videos to the database.
in frontend I need something really cool, and fancy – where it has little thumbnails on front for each video and they can slide into each other.

pls help with suggestions....
0
Comment
Question by:codeoxygen
  • 2
3 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36988028
You can get thumbnails from a Google API

http://gdata.youtube.com/feeds/api/videos/?vq="+escape(SEARC_STRING)+"&aq=f&start-index=" + PAGE_INDEX;

Example:

var _httpSearch:HTTPService = new HTTPService();
_httpSearch.resultFormat = 'e4x';
_httpSearch.showBusyCursor = true;
_httpSearch.addEventListener(ResultEvent.RESULT, onSearchResult);
_httpSearch.url = "http://gdata.youtube.com/feeds/api/videos/?vq=Star Wars&aq=f&start-index=1";
_httpSearch.send();

function onSearchResult( event:ResultEvent ) : void {
      var movies:Array = [];
      trace(event.result..totalResults);
      trace(event.result..itemsPerPage);
      for each( var entry:XML in event.result..entry ) {
            var group:XML = entry.group[0];
            var movieID:String = group.player.@url.split( /=/ )[1];
            movies.push( {
                  movieID:movieID,
                  id:group.player.@url.toString(),
                  description:entry.content.toString(),
                  title:group.title.toString(),
                  thumbnail:group.thumbnail[0].@url.toString() } );
      }
      trace(movies);
}

0
 

Author Comment

by:codeoxygen
ID: 36992414
is this possible thru php ?
0
 
LVL 29

Accepted Solution

by:
dgofman earned 2000 total points
ID: 36994206
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses
Course of the Month16 days, 9 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question