这是我的代码:
Media media = new Media("rtsp://192.168.1.206:554");
final MediaPlayer player = new MediaPlayer(media);
MediaView view = new MediaView(player);
Group root = new Group();
root.getChildren().add(view);
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
player.play();
但是有一个例外。