2015-07-11 23 views
0

我已經使用了Soundcloud Widget很長一段時間了。但是,自從一個星期左右(我不知道激動)錯誤「NPObject上的錯誤調用方法!」當發生試圖調用這樣一個函數:Soundcloud Embed - 「在NPObject上調用方法錯誤!」

soundcloud.getPlayer('scPlayer').api_play() 

我跟着從這裏的描述:https://developers.soundcloud.com/docs/widget#methods

是其他任何人有這些問題? 我已經創建了一個頁面,你可以看到現場的錯誤:http://threeam.de/vergelabs/soundcloud.html

回答

0

沒關係,我切換到HTML5播放器(https://developers.soundcloud.com/docs/api/html5-widget#methods)。 作品像一個魅力

+0

它也** [工作像一個魅力](https://player.soundcloud.com/player.swf?enable_api=true&object_id=yourPlayerId&referer=&url=https%3A%2F%2Fsoundcloud。如果你已經把一個** player.swf?url = https **而不是當前使用的** player.swf放在Flash中,那麼你可以在Flash中創建一個名爲com%2Fsober-rob%2Fhappy-jungle-animals-w-manitee-and-tama) ?url = http **在你的測試頁的源代碼中。至於您的網站,我認爲HTML5更適合爲您的網站訪問者提供全部設備播放(包括移動設備)。 Flash適用於高級應用程序(如實時播放聲音,甚至在上傳之前製作音樂)。 –

相關問題