Witam,
Mam problem z kontrolką mediaView, film się odtwarza, ale nie widać obrazu. Nie wiem czy to problem z layoutem czy może jakiś inny.

<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.media.*?>
<?import javafx.scene.control.*?>
<?import java.lang.*?>
<?import javafx.scene.layout.*?>

<BorderPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pl.goraj.media.app.MainController">
    <center>
        <AnchorPane BorderPane.alignment="CENTER">
         <children>
            <MediaView fitHeight="200.0" fitWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
         </children>
        </AnchorPane>
    </center>
    <top>
        <AnchorPane BorderPane.alignment="CENTER">
            <children>
                <MenuBar>
                    <menus>
                        <Menu fx:id="fileMenu" mnemonicParsing="false" text="File">
                            <items>
                                <MenuItem fx:id="fileMenuItem" mnemonicParsing="false" text="Otwórz film" />
                                <MenuItem fx:id="closeMenuItem" mnemonicParsing="false" text="Zamknij" />
                            </items>
                        </Menu>
                        <Menu mnemonicParsing="false" text="Help">
                            <items>
                                <MenuItem fx:id="aboutMenuItem" mnemonicParsing="false" text="About" />
                            </items>
                        </Menu>
                    </menus>
                </MenuBar>
            </children>
        </AnchorPane>
    </top>
</BorderPane>

Kod kontrolerla:
```java

package pl.goraj.media.app;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ResourceBundle;

import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.MenuItem;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaView;
import javafx.stage.FileChooser;
import javafx.stage.FileChooser.ExtensionFilter;
import javafx.stage.Stage;

public class MainController implements Initializable {

    @FXML
    private MediaView mediaView;

    @FXML
    private MenuItem fileMenuItem;

    @FXML
    private MenuItem closeMenuItem;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        configureMenu();
        mediaView = new MediaView();
    }

    private void configureMenu() {

        fileMenuItem.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                FileChooser fc = new FileChooser();
                fc.getExtensionFilters().add(
                        new ExtensionFilter("flv", "*.flv")); // filter jakiego
                                                                // typu pliki
                                                                // mogą być
                File file = fc.showOpenDialog(new Stage());
                if (file != null) {
                    String path = file.toURI().toASCIIString();
                    System.out.println(path);
                    try {
                        //Media media = new Media(file.toURI().toURL().toExternalForm()); daje NLP
                        //Media media = new Media(file.getAbsolutePath()); //film się nie odtwarza
                        Media media = new Media(path); //film się nie odtwarza
                        MediaPlayer player = new MediaPlayer(media); //daje NLP
                        player.setAutoPlay(true);
                        mediaView.setMediaPlayer(player);
                    } catch (Exception e1) {
                        e1.printStackTrace();
                    }
                }
            }
        });

        closeMenuItem.setOnAction(new EventHandler<ActionEvent>() {
            public void handle(ActionEvent event) {
                Platform.exit();
            }
        });
    }

}