用safari无法播放音乐,调试报错,打印url在新窗口打开可以正常播放,按老师github上master的地址更换过音乐源同样不行(但master中代码运行可以正常播放),后来切换到chrome浏览器却可以正常播放。我是跟着学到7-8按老师操作写的,很疑惑不知道哪里产生了问题。
报错信息:Unhandled Promise Rejection: NotAllowedError (DOM Exception 35): The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.