I have created a player where it plays a specific file, the problem is the file does't play i'm getting the error of
"Got exception javax.media.NoPlayerException: Cannot find a Player for :P.mp4 " Here's the code
Java Code:
import javax.media.*;
import javax.swing.*;
import java.awt.*;
import java.net.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

public class Vid extends JFrame
{
	Player _player;
	JFileChooser fileChooser;
	Vid()
	{
		addWindowListener( new WindowAdapter(){
			public void windowClosing( WindowEvent e)
			{
				_player.stop();
				_player.deallocate();
				_player.close();
				System.exit( 0 );
			}
		});
		setBounds( 0, 0, 320, 260 );
		JPanel panel = (JPanel)getContentPane();
		panel.setLayout(new BorderLayout() );
		String mediaFile = "P.mp4";
		try{

			MediaLocator mlr = new MediaLocator(mediaFile );
			_player = Manager.createRealizedPlayer(mlr);
			if (_player.getVisualComponent() !=null)
			panel.add("Center", _player.getVisualComponent());
			if(_player.getControlPanelComponent() != null)
			panel.add("South", _player.getControlPanelComponent());
		}
		catch (Exception e){
			System.err.println( "Got exception " + e );


		setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
}

	public static void main(String[] args) {
		Vid v = new Vid();
		v.show();
	}
}