@Override
	public void onUpdatePath(@Nonnull PathNode<?> path) {
		if (path instanceof FilePathNode filePath) {
			this.path = filePath;
			FileInfo fileInfo = filePath.getValue();
			try {
				player.stop();
				player.load(fileInfo.getName());
				MediaView view = new MediaView(player.getPlayer());
				setCenter(view);
				view.setPreserveRatio(true);
				view.fitHeightProperty().bind(heightProperty().subtract(40));
			} catch (IOException ex) {
				onLoadFailure(fileInfo, ex);
			}
		}
	}
A pane for displaying and playing video files.

@author Matt Coley
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/media/VideoPane.java