总结:我们正在运行 Django 房间应用程序的本地版本,人们可以在其中加入并在不同设备上同时听音乐。当我们在 localhost 上测试它时一切正常,但是当我们将它部署在 Heroku 上时,我们收到一个错误消息,说{see question}。 Heroku 不支持 Spotify API 吗?
问题:
Uncaught (in promise) EMEError: Platform does not support navigator.requestMediaKeySystemAccess
at new e (https://sdk.scdn.co/embedded/index.js:119:253)
at Function.e.fatal (https://sdk.scdn.co/embedded/index.js:119:516)
at https://sdk.scdn.co/embedded/index.js:55:2946
at new Promise (<anonymous>)
at Function.r.create (https://sdk.scdn.co/embedded/index.js:55:2867)
at Function.t.create (https://sdk.scdn.co/embedded/index.js:79:6011)
at https://sdk.scdn.co/embedded/index.js:137:2839
at new Promise (<anonymous>)
at createPlayer (https://sdk.scdn.co/embedded/index.js:137:2217)
at Object.createStreamerForClient (https://sdk.scdn.co/embedded/index.js:271:2104)