Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube Player in Java GUI

I was thinking about implementing an application in Java (with a GWT GUI) that among its options will be able to play YouTube video and audio, or at least only audio.

The problem is that I can't seem to find any API or source code that enables it. What I want is that given a URL for a video in YouTube, one can play it using Java.

like image 228
Alex Avatar asked Dec 28 '09 22:12

Alex


1 Answers

Have a look at Google's YouTube Data API, retrieving a VideoEntry should be pretty trivial (see for example Interact with YouTube from Java ). Playing them from Java may require a bit more work and I guess you'll need to embed a SWF Player. Or maybe check gwt2swf, a Flash/Flex Widget for GWT.

like image 85
Pascal Thivent Avatar answered Oct 20 '22 17:10

Pascal Thivent