http://java.sun.com/products/java-media/jmf/

解决方案 »

  1.   

    public void start() {
      if (player != null)
    player.realize();
    }// 播放

    public void stop() {
      if (player != null) {
      player.stop();
      player.deallocate();
      }
    }// 停止
      

  2.   

    TVApplet is a simple applet that demonstrates how to create a media player to present a media clip. This applet displays the player's visual and control panel components over a background image. The name of the file is passed in as a parameter in the applet tag used to display the applet. The Applet tag for TVApplet looks something like: <applet code=TVApplet.class width=587 height=510>
    <param name=file value="media/playme.mov">
    </applet>
      

  3.   

    TVApplet is a simple applet that demonstrates how to create a media player to present a media clip. This applet displays the player's visual and control panel components over a background image. The name of the file is passed in as a parameter in the applet tag used to display the applet. The Applet tag for TVApplet looks something like: <applet code=TVApplet.class width=587 height=510>
    <param name=file value="media/playme.mov">
    </applet>