@Override
	public void init() throws NoDataSourceException, IOException {

		setLayout(new BorderLayout()); // use a BorderLayout

		// Use lightweight components for Swing compatibility
		Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, true);

		try {
			Player player = Manager.createRealizedPlayer(url);

			Component vid = player.getVisualComponent();
			Component controls = player.getControlPanelComponent();

			if (vid != null)
				add(vid, BorderLayout.CENTER); // add video component

			if (controls != null)
				add(controls, BorderLayout.SOUTH); // add controls

			player.start(); // start playing the media clip
		} // end try
		catch (NoPlayerException noPlayerException) {
			System.err.println("No media player found");
		} // end catch
		catch (CannotRealizeException cannotRealizeException) {
			System.err.println("Could not realize media player");
		} // end catch
		catch (IOException iOException) {
			System.err.println("Error reading from the source");
		} // end catch
	} // end MediaPanel constructor