nativescript-videoplayer icon indicating copy to clipboard operation
nativescript-videoplayer copied to clipboard

Video player options not visible on iOS 16

Open Cateye82 opened this issue 2 years ago • 1 comments

The timeline and the controls were visible on iOS 15 and before. With iOS 16 its not, as mentioned in this thread:

https://developer.apple.com/forums/thread/711360

They show a solution, but I was not able to implement that into the plugin or find any workaround with the native code options. Can you please provide some fix or tell me what to do?

Cateye82 avatar Feb 02 '23 13:02 Cateye82

I have found a workaround for the time being by delaying the rendering of the video player.

View:

<StackLayout *ngIf="init">
    <VideoPlayer [src]="url" height="500" autoplay="true" controls="true"></VideoPlayer>
</StackLayout>

TS (loaded is called when the page has loaded). 500ms is just the value I tested last -- it might even work with a shorter delay:

loaded() {
    setTimeout(() => this.init = true, 500);
}

heese avatar Feb 20 '23 07:02 heese