public MediaPanel( URL mediaURL)
	{
		setLayout( new BorderLayout() ); // use a BorderLayout

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

		try
		{
			Format[] inFormats = { new VideoFormat ("DIVX") };
			Format[] inFormats2 = { new AudioFormat ("mpeglayer3") };

			PlugInManager.addPlugIn ("net.sourceforge.jffmpeg.VideoDecoder", inFormats, null, PlugInManager.CODEC);
			PlugInManager.addPlugIn ("net.sourceforge.jffmpeg.AudioDecoder", inFormats2, null, PlugInManager.CODEC);

			PlugInManager.commit();
			
			// create a player to play the media specified in the URL
			mediaPlayer = Manager.createRealizedPlayer( mediaURL );

			// get the components for the video and the playback controls
			Component video = mediaPlayer.getVisualComponent();

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

		} // 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