Having issues streaming certain tracks with SDK3.0
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- api
调研方向
Start with the linked playSong() snippet and CodePen, then compare the failing and working track URLs under SDK3.0. Reproduce the Safari request and inspect the reported Accept-Encoding/CORS error to determine whether the problem is in the SDK request or SoundCloud's response. Done means a confirmed cause with an actionable SDK fix or a documented external limitation.
由索引模型根据 Issue 内容生成。
描述
Hi,
after switching from SDK2.0 and using only SC.stream() to SDK3.0 and using resolve to find the ID, certain tracks won't play.
No error messages given, they simply will not play.
Examples of tracks that are not playing:
https://soundcloud.com/dreamchasersrecords/meek-mill-pray-for-em
https://soundcloud.com/gangstagibbs/hot-boys-produced-by-dupri-of-league-of-starz
Examples of tracks that are playing fine:
https://soundcloud.com/kanyewest/nomorepartiesinla
https://soundcloud.com/amirobe/amir-obe-before-the-vomit-produced-by-oz
They were all playing when I was using SDK2.0 and supplying the ID of the song,
Any ideas? Very frustrating!
Thanks.
Edit:
Also made a small codepen showing the issue: http://codepen.io/mariussunde/pen/mVxKPO
Last track does not work
Edit 2:
Safari also gives me these errors;
[Error] Failed to load resource: Request header field Accept-Encoding is not allowed by Access-Control-Allow-Headers. (242557602.json, line 0)
[Error] XMLHttpRequest cannot load https://api.soundcloud.com/tracks/242557602.json?client_id=9e05e349251475056d1bc81acbf08c71&secret_token=tracks. Request header field Accept-Encoding is not allowed by Access-Control-Allow-Headers.
Now my question here is, is this something I can fix on my own server, or does the issue lie with soundcloud?
- 主要语言
- JavaScript
- 星标
- 388
- 派生
- 76
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
soundcloud/soundcloud-javascript 的其他 Issue
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 3/5 1-2 天 新手友好度 45/100
soundcloud/soundcloud-javascript#90 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
查看 soundcloud/soundcloud-javascript 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
yjh051108/dsh-routing-suite#216 ·
-
bug user-priority/P2
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 4 天内回复
-
bug confirmed perf
难度 2/5 1-3 小时 新手友好度 72/100
videojs/video.js#9400 · 1 条评论 ·
维护者通常 1 天内回复
-
agent/scanner bug hive/hosted-available-lke648397-260827-5n31
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复