i’m working on an app that needs to load videos from an API, i fixed this using iframes.
Basically the API sends a youtube video and i decided to show it with iframes (i don’t know any better tbh).
Problem is, even if i allow the fullscreen mode of the iframe, when i click on it it closes almost immediately, both on Android and in the browser.
<iframe [src]="this.sanitizer.bypassSecurityTrustResourceUrl(i.url)" width="560" height="315" frameborder="0" align="middle" allowfullscreen> </iframe>
This is a gif that showcases the problem: