Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Video restart when rotate the device in IONIC 3

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>