Why are some SoundCloud tracks causing their HTML5 widget to fail?

落花浮王杯 提交于 2019-12-11 06:48:41

问题


I am using SoundCloud's own JavaScript API to embed HTML5 widgets on a site but am finding that often their HTML5 widget will not function correctly: neither the waveform nor the artwork displays correctly. Whether the widget functions as expected seems to be on a track-by-track basis.

This is especially noticeable in the WebKit-based browsers (Chrome & Safari) but I also see the issue in Firefox (all browsers used to test are their respective latest versions).

Checking each browser's dev console shows that the SoundCloud code is triggering DOM INDEX_SIZE_ERR exceptions.

The following JSFiddle demonstrates the problem, both using SC's own API as well as a hard-coded embed HTML copied straight from what's given on the SC track page: http://jsfiddle.net/yoknapatawpha/z6axa/

The Thurston Moore track displays correctly, which suggests that this is an issue related to specific tracks. (It is worth noting have also reproduced this problem in a clean page outside JSFiddle, thus removing any possible interference from other elements on the page.)

Does anyone have any ideas or insight as to what is going wrong?

来源:https://stackoverflow.com/questions/9978626/why-are-some-soundcloud-tracks-causing-their-html5-widget-to-fail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!