解决方案 »

  1.   

    From an applet cannot read media file with extension wmv你换个后缀试试这个意思是说 applet不能读后缀是 wmv的 媒体文件
      

  2.   


    用avi  会爆下面的错误 也就是 不识别
      Unable to handle format: XVID, 1424x800, FrameRate=15.0, Length=1708800 0 extra bytes
      Unable to handle format: mpeglayer3, 44100.0 Hz, 0-bit, Stereo, Unsigned, 16000.0 frame rate, FrameSize=8 bits
    Failed to realize: com.sun.media.PlaybackEngine@1982fc1
    Error: Unable to realize com.sun.media.PlaybackEngine@1982fc1
      

  3.   

    要注册ext的吧。
    看下源码为什么会报第一个异常:// For applets, check to see if the media file has a file extension  
        // If not, throw an IOException with the following message:  
        // "For security reasons, from an applet, cannot read a media file with no extension"  
        // If there is a file extension, make sure it is registered in the  
        // mimetable.  
        // If not throw an IOException.  
      
        if (jmfSecurity != null) {  
            int i = fileName.lastIndexOf(".");  
            if (i != -1) {  
            String ext = fileName.substring(i+1).toLowerCase();  
            if (!mimeTable.containsKey(ext)) {  
                // Treat aif as a special case due to bug in IE VM  
                if (!ext.equalsIgnoreCase("aif"))   
                throw new IOException("Permission Denied: From an applet cannot read media file with extension " + ext);  
            }  
            } else {  
            throw new IOException("For security reasons, from an applet, cannot read a media file with no extension");  
            }  
        }  
      

  4.   


    注册ext怎么弄?? 这个我是小白 能给段代码我看看么
      

  5.   

    问题自己解决了  是需要放 avi MJPEG  PCM 格式的avi视频