Muskaan, Quest... badly waiting for ur help

I am trying to play video...the code is as follows ::

privatevoid jButton13ActionPerformed(java.awt.event.ActionEvent evt){

if(mp!=null){

mp.stop();

mp.deallocate();

}

URL videoURL;

try{

videoURL =new URL("file:z:/temp/sample.avi");

System.out.println(videoURL);

try{

try{

mp = (MediaPlayer) Manager.createRealizedPlayer(videoURL);

}catch (NoPlayerException ex){

ex.printStackTrace();

}catch (CannotRealizeException ex){

ex.printStackTrace();

}catch (IOException ex){

ex.printStackTrace();

}

mp.addControllerListener(this);

jPanel7.add(mp);

mp.start();

}catch (Exception e){

System.out.println(e);

}

}catch (MalformedURLException ex){

ex.printStackTrace();

}

}

after trying that code, it gave me the following list of errors...

Unable to handle format: XVID, 720x304, FrameRate=25.0, Length=1313280 0 extra bytes

Unable to handle format: mpeglayer3, 32000.0 Hz, 0-bit, Stereo, Unsigned, 12000.0 frame rate, FrameSize=3456 bits

Failed to realize: com.sun.media.PlaybackEngine@18f6235

Error: Unable to realize com.sun.media.PlaybackEngine@18f6235

javax.media.CannotRealizeException

at javax.media.Manager.blockingCall(Manager.java:2005)

at javax.media.Manager.createRealizedPlayer(Manager.java:528)

at jmedia.NewJFrame.jButton13ActionPerformed(NewJFrame.java:1141)

at jmedia.NewJFrame.access$2200(NewJFrame.java:43)

at jmedia.NewJFrame$26.actionPerformed(NewJFrame.java:663)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

at java.awt.Component.processMouseEvent(Component.java:5999)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)

at java.awt.Component.processEvent(Component.java:5764)

at java.awt.Container.processEvent(Container.java:1984)

at java.awt.Component.dispatchEventImpl(Component.java:4407)

at java.awt.Container.dispatchEventImpl(Container.java:2042)

at java.awt.Component.dispatchEvent(Component.java:4237)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)

at java.awt.Container.dispatchEventImpl(Container.java:2028)

at java.awt.Window.dispatchEventImpl(Window.java:2405)

at java.awt.Component.dispatchEvent(Component.java:4237)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

[4294 byte] By [Spaniana] at [2007-11-26 22:24:27]
# 1
why no answers?Are u all busy.....Waiting for ur reply guys
Spaniana at 2007-7-10 11:24:32 > top of Java-index,Security,Cryptography...
# 2
install Fobs4JMF ( http://fobs.sourceforge.net)
andreyvka at 2007-7-10 11:24:32 > top of Java-index,Security,Cryptography...
# 3
even if i add fobs4jmf.jar, the same error.
Spaniana at 2007-7-10 11:24:32 > top of Java-index,Security,Cryptography...
# 4

can you re-check your setup against "5. Register plugin in JMF" of http://fobs.sourceforge.net/f4jmf_first.html ? Is your classpath correct? Did you copy fobs4jmf.dll into windows\system32\ or specify correct LD_LIBRARY_PATH. Because I you've installed from .exe, it wouldnt work.

I've just played an AVI file. And a MOV, MPG and WMV file. All are ok.

andreyvka at 2007-7-10 11:24:32 > top of Java-index,Security,Cryptography...
# 5
Rather than copying the dll to System32, set the PATH variable to the location where the dll is present and resart netbeans
chasana at 2007-7-10 11:24:32 > top of Java-index,Security,Cryptography...