javascript 适用于三星智能电视的 Soundcloud

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30572547/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 12:23:22  来源:igfitidea点击:

Soundcloud for Samsung Smart-TV

javascripthttpfilesystemssoundcloudsamsung-smart-tv

提问by Michael Caduri

We use the Soundcloud API , which allows sending information only between "http" or "https" protocols. The smart-TV, as far as we know, uses a kind of file system. Hence, the requests can't be sent to the Soundcloud server, and information can't be received from it, using the API. Is there any way to host some kind of a private http server on the TV, and use it? Or is there a different Soundcloud API module we can use? Any other ideas are welcomed... Thanks!

我们使用 Soundcloud API ,它只允许在“http”或“https”协议之间发送信息。据我们所知,智能电视使用的是一种文件系统。因此,使用 API 无法将请求发送到 Soundcloud 服务器,也无法从中接收信息。有什么方法可以在电视上托管某种私人 http 服务器并使用它?或者我们可以使用不同的 Soundcloud API 模块吗?欢迎任何其他想法......谢谢!

回答by Ivan Solntsev

Smart TV is capable of using XMLHttpRequest. You can access Soundcloud HTTP API with it. However you may need to authentificate yourself somehow.

智能电视能够使用XMLHttpRequest。您可以使用它访问 Soundcloud HTTP API。但是,您可能需要以某种方式验证自己的身份。

回答by Michael Caduri

finally figured it out using Cross Domain Requests - $.getJSONetc.
All of which is supported by the SoundCloud API.
Thanks anyway!

最终使用跨域请求 -$.getJSON等等。
所有这些都得到了 SoundCloud API 的支持。
不管怎么说,还是要谢谢你!