Skip to content
Snippets Groups Projects
Commit a975c0c8 authored by Tran Peter's avatar Tran Peter
Browse files

add(easter egg): more memes #20

parent fb7ef6aa
No related branches found
No related tags found
5 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!10Mergin ui into development,!9Merging ui into development
......@@ -26,7 +26,8 @@ public class MenuBorderPaneController implements Initializable {
private final SceneLoader sceneLoader = new SceneLoader();
private MediaPlayer musicPlayer, mediaPlayer;
private MediaView mediaView;
private final String[] videoFiles = {"allMyFellas.mp4", "bobama.mp4", "lifeCouldBeMonke.mp4", "russianKid.mp4"};
private final String[] videoFiles = {"allMyFellas.mp4", "bobama.mp4", "roomba.mp4", "lifeCouldBeMonke.mp4", "russianKid.mp4", "horse.mp4",
"catSitting.mp4", "holyCrap.mp4", "basketball.mp4", "=D.mp4", "banana.mp4", "minecraftCat.mp4", "muecke.mp4", "top10Cats.mp4", "dog.mp4", "frog.mp4", "dog2.mp4", "legCat.mp4"};
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
......@@ -70,7 +71,7 @@ public class MenuBorderPaneController implements Initializable {
mediaPlayer.dispose();
}
if (videoCounter <= 3) {
if (videoCounter < videoFiles.length) {
musicPlayer.stop();
mediaPlayer = new CreateMediaPlayer().getMediaPlayer(mediaView, new File("src/main/resources/videos/" + videoFiles[videoCounter]), false);
mediaView = new MediaView(mediaPlayer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment