2012-09-03 87 views
4

我想要在我的网页上嵌入jRecorder。我添加了它在说明文件中添加的内容,当我打开页面时,它是空白的。jRecorder没有在页面上显示

页看起来是这样的:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<script src="jquery.min.js"> </script> 
<script src="jRecorder.js"> </script> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>Untitled Document</title> 
</head> 
<body> 
<div> 
<script> 
    $.jRecorder(
    { 
     'rec_width': '300', 
     'rec_height': '200', 
     'rec_top': '0px', 
     'rec_left': '0px', 
     'recorderlayout_id' : 'flashrecarea', 
     'recorder_id' : 'audiorecorder', 
     'recorder_name': 'audiorecorder', 
     'wmode' : 'transparent', 
     'bgcolor': '#ff0000', 
     'swf_path': 'jRecorder.swf', 
     'host': 'acceptfile.php?filename=hello.wav', 
     'callback_started_recording' : function(){}, 
     'callback_finished_recording' : function(){}, 
     'callback_stopped_recording': function(){}, 
     'callback_error_recording' : function(){}, 
     'callback_activityTime': function(time){}, 
     'callback_activityLevel' : function(level){} 
     } 
     ); 
</script> 
</div> 
</body> 
</html> 

我有没有遵循这个错误?

+0

我不使用jRecorder,和你使用的是什么浏览器,我不知道,但:1)确保它与您的浏览器&2),如果你的浏览器有错误/调试兼容控制台,查看它的具体错误消息,如果有的话。 – Miguel

+0

我在其他网站上使用了来自同一浏览器的jRecorder,所以我不认为这是问题所在。 – Milksnake12

回答

-1

嘿约jRecorder, 作为米格尔说,你需要检查您的浏览器的兼容性。所以如果你使用chrome或opera或firefox,你不会有任何问题。 但如果它是IE8或9它不会工作,但与IE10将。 所以你需要做什么,如果你想它在IE9上工作,你需要修改你的jRecorder.js或者如果你想从https://github.com/capsula4/jRecorder下载它,我想他解决了这个问题。

谢谢