I\'m trying to play a video from youtube using javaFX. Here is my code
public class Main extends Application { public static void main(String[] args) {
JavaFX can't play youtube video just with the video url. you need to specify the file of your video, not just a random youtube link. Try with this URL : http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv your code works fine