@@ -0,0 +1,861 @@
+package AppPackage;%0A%0Aimport javafx.scene.Group;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.media.Media;%0Aimport javafx.scene.media.MediaPlayer;%0Aimport javafx.scene.paint.Color;%0A%0Apublic class VideoPlayer %7B%0A%0A%09private String videoFile;%0A%0A%09public void setMediaFile (final String vf)%7B%0A%09%09this.videoFile = vf;%0A%09%7D%0A%0A%09private String getMediaFile ()%7B%0A%09%09return this.videoFile;%0A%09%7D%0A%0A%09private Scene createScene () %7B%0A%09%09final Group  root  =  new  Group();%0A%09%09//exception%0A%09%09final Scene scene = new Scene (root, 1100, 600, Color.BLACK);%0A%09%09final Media media = new Media (getMediaFile());%0A%09%09final MediaPlayer mPlayer = new MediaPlayer(media);%09%09%0A%09%09mPlayer.setAutoPlay(true);%0A%09%09final MediaControl mediaControl = new MediaControl(mPlayer);%0A%09%09scene.setRoot(mediaControl);%0A%09%09return (scene);%09    %0A%09%7D%0A%0A%09public Scene getScene() %7B%0A%0A%09%09final Scene scene = createScene();%0A%09%09return scene;%0A%09%7D%0A%7D%0A

Create VideoPlayer.java