aboutsummaryrefslogtreecommitdiff
path: root/src/main/JFXaudioPlayer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/JFXaudioPlayer.java')
-rw-r--r--src/main/JFXaudioPlayer.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/main/JFXaudioPlayer.java b/src/main/JFXaudioPlayer.java
deleted file mode 100644
index 9207c59..0000000
--- a/src/main/JFXaudioPlayer.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package main;
-
-import java.io.File;
-import java.io.IOException;
-
-import javafx.application.Application;
-import javafx.fxml.FXMLLoader;
-import javafx.scene.Parent;
-import javafx.scene.media.Media;
-import javafx.scene.media.MediaPlayer;
-import javafx.stage.Stage;
-
-public class JFXaudioPlayer extends Application{
-
- public static void main(String[] args)
- {
- launch(args);
- }
-
- @Override
- public void start(Stage primaryStage)
- {
- // primaryStage.show();
- String musicFile = "EXAMPLE.mp3"; // For example
- Media sound = new Media(new File(musicFile).toURI().toString());
- MediaPlayer mediaPlayer = new MediaPlayer(sound);
- mediaPlayer.play();
- }
-} \ No newline at end of file