2012-09-03 82 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下載它,我想他解決了這個問題。

謝謝