@ken-shin wrote:
so in my ionic app i can play video using vimeo player with iframe and it works perfectly.
the problem is when i rotate the screen it restart the video again. i know it’s about saving the state kinda thing. but i don’t know how to do it.
this is my code<ion-col *ngIf="!rendering" > <iframe [src]="cleanURL(VideoSrc)" width="100%" height="400" frameborder="0" allowfullscreen></iframe> </ion-col>
and this is the typescript code
cleanURL(oldURL: string): SafeResourceUrl { return this.sanitizer.bypassSecurityTrustResourceUrl(oldURL+'?autoplay=1'); }
there is plugin for screen orientation but i can’t seem to grasp how to resume the video right at that point after rotating the screen.
any kind of guidance would be helpful
have a nice day. cheers
Posts: 1
Participants: 1