Package javafx.scene.media

Examples of javafx.scene.media.MediaException


    void initialize() {
        assert controlButton != null : "fx:id=\"controlButton\" was not injected: check your FXML file 'MediaControl.fxml'.";
        assert timeSlider != null : "fx:id=\"timeSlider\" was not injected: check your FXML file 'MediaControl.fxml'.";
        assert volumeSlider != null : "fx:id=\"volumeSlider\" was not injected: check your FXML file 'MediaControl.fxml'.";
        mp.errorProperty().addListener((Observable observable) -> {
            final MediaException ex = mp.getError();
            if (ex != null) {
                Platform.runLater(() -> {
                    Logger.getLogger(VideoFile.class.getName()).log(Level.WARNING, ex.getType() + " Failed to initialize MediaControl for file " + file.getName(), ex);
                    setCenter(new Text(ex.getType() + "\nSee the logs for details."));
                    setBottom(null);
                });
            }
        });
        mp.statusProperty().addListener((observableStatus, oldStatus, newStatus) -> {
View Full Code Here

TOP

Related Classes of javafx.scene.media.MediaException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.