Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video player options not visible on iOS 16 #229

Open
Cateye82 opened this issue Feb 2, 2023 · 1 comment
Open

Video player options not visible on iOS 16 #229

Cateye82 opened this issue Feb 2, 2023 · 1 comment

Comments

@Cateye82
Copy link

Cateye82 commented Feb 2, 2023

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?

@heese
Copy link

heese commented Feb 20, 2023

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants