在Safari iOS上出现以下错误(因为我无法在Chrome上播放歌曲,我假设Chrome有同样的问题)。
TypeError: 'null' is not an object (evaluating 'h._setVolume')
line: 38
message: "'null' is not an object (evaluating 'h._setVolume')"
sourceURL: "http://connect.soundcloud.com/soundmanager2/soundmanager2.js"
stack: "setVolume@http://connect.soundcloud.com/soundmanager2/soundmanager2.js:38:342↵play@http://connect.soundcloud.com/soundmanager2/soundmanager2.js:34:153↵↵createAndCallback@http://connect.soundcloud.com/sdk.js:2:5654↵http://connect.soundcloud.com/sdk.js:2:6001↵whenReady@http://connect.soundcloud.com/sdk.js:2:3538↵whenStreamingReady@http://connect.soundcloud.com/sdk.js:2:4474↵stream@http://connect.soundcloud.com/sdk.js:2:5397↵eval code↵eval@[native code]↵_evaluateOn↵_evaluateAndWrap↵evaluate"
__proto__: Error
运行后我收到上述错误。
SC.stream('http://api.soundcloud.com/tracks/55499783/stream', function(stream) {
stream.play();
});
这是SoundManager中的错误吗?我在文档中遗漏了什么吗?这个完全相同的代码库在任何桌面浏览器中都能正常运行。