我有一个提要,它给我一个与 Apple Music 相关的 iframe
。它还具有与 Spotify 和其他相关的 iframe
。所有其他 iframe
加载都没有问题,但 apple music 没有。
这是我为 Apple Music 使用的 iframe
。
<iframe allow="autoplay *; encrypted-media *;" frameborder="0" height="450" style="width:100%;max-width:660px;overflow:hidden;background:transparent;" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation" src="https://embed.music.apple.com/us/album/outer-peace/1438769910?app=music&at=1010lpzb"></iframe>
我正在构建 html 文档,然后使用 mWebView.loadDataWithBaseURL()
将其加载到 WebView 中。相同的 iframe 在网页或 w3schools 等网站上加载正常,没有问题。
我在这里错过了什么?很乐意提供所需的任何详细信息。
最佳答案
关于Android Webview - Apple Music iframe 无法加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54324234/