nativescript-videoplayer
nativescript-videoplayer copied to clipboard
Video player options not visible on iOS 16
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?
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);
}