jrecorder外掛程式問題

來源:互聯網
上載者:User
問題是這樣的:前幾天我在網上下了一個外掛程式jrecorder,這是一個不需要任何flash編程技術就可以實現線上錄音的jquery外掛程式,但問題出現了,我在http://www.sajithmr.me/jrecorder/exam... 上下了外掛程式,也按照提示把外掛程式裝在本機伺服器上,但是老是出錯:Uncaught TypeError: Object # has no method 'jStartRecording' ;jStartRecording函數在jrecorder.js中:

//function call to start a recording$.jRecorder.record = function(max_time){//change z-index to make it top$(  '#' + jRecorderSettings['recorderlayout_id'] ).css('z-index', 1000);    getFlashMovie(jRecorderSettings['recorder_name']).jStartRecording(max_time);} 

本地測試時使用的代碼:

jRecorder Example             Time: 00:00          Level:                      Status:                      

我查看了網上那個樣本的原始碼,發現和我本地上的代碼沒有區別,所以真的很鬱悶,到底哪裡出錯了?

回複內容:

問題是這樣的:前幾天我在網上下了一個外掛程式jrecorder,這是一個不需要任何flash編程技術就可以實現線上錄音的jquery外掛程式,但問題出現了,我在http://www.sajithmr.me/jrecorder/exam... 上下了外掛程式,也按照提示把外掛程式裝在本機伺服器上,但是老是出錯:Uncaught TypeError: Object # has no method 'jStartRecording' ;jStartRecording函數在jrecorder.js中:

//function call to start a recording$.jRecorder.record = function(max_time){//change z-index to make it top$(  '#' + jRecorderSettings['recorderlayout_id'] ).css('z-index', 1000);    getFlashMovie(jRecorderSettings['recorder_name']).jStartRecording(max_time);} 

本地測試時使用的代碼:

jRecorder Example             Time: 00:00          Level:                      Status:                      

我查看了網上那個樣本的原始碼,發現和我本地上的代碼沒有區別,所以真的很鬱悶,到底哪裡出錯了?

把所有JS代碼放到$(function() { ~~~~~~~~放置jRecorder代碼~~~~~~~~~~~ })

解決了沒有?

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.