I have a feed which give me an iframe related to Apple Music. It also has iframe related to Spotify and others. All other iframes load without issue, but the apple music doesn't.
This is the iframe i have for the apple music.
<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>
I am constructing the html document and then loading it in the WebView using mWebView.loadDataWithBaseURL(). The same iframe loads fine on webpage or sites like w3schools without issue.
What am i missing here? Happy to provide any details needed.
from Android Webview - Apple Music iframe doesn't load
No comments:
Post a Comment