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

AllowsInlineMediaPlayback not working! #73

Closed
docaohuynh opened this issue Mar 28, 2019 · 3 comments
Closed

AllowsInlineMediaPlayback not working! #73

docaohuynh opened this issue Mar 28, 2019 · 3 comments

Comments

@docaohuynh
Copy link

Hi team!
I want Display youtube video inline on IOS devices but It's always fullscreen when play
I have some code like this

InAppWebView(
            initialUrl: "https://youtube.com/...",
            initialHeaders: {

            },
            initialOptions: {
              "allowsInlineMediaPlayback": true,
            }
...
);

video tag generate
<video tabindex="-1" class="video-stream html5-main-video" webkit-playsinline="" playsinline="" controlslist="nodownload" style="width: 366px; height: 206px; left: 323.389px; top: 0px;" src="blob:https://www.youtube.com/af98e547-89b5-4594-b54d-9325fe046597"></video>

@ShiroYacha
Copy link

seconding this... it doesn't seem to work with Vimeo either

@ShiroYacha
Copy link

To test this use https://developers.google.com/youtube/youtube_player_demo as the initialUrl and set the option playsinline and update the player. The player will still play as full screen on iOS devices.

This was referenced Jul 6, 2020
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants