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

iOS video going full screen on click to play. Playsinline parameter not working. #161

Open
mcarthurnick opened this issue Dec 26, 2017 · 0 comments

Comments

@mcarthurnick
Copy link

mcarthurnick commented Dec 26, 2017

I have been having an issue for some time and I can't seem to figure out what is going on.I am using Angular 1.5 and the npm package angular-youtube-embed.

Video Html:

<div class="videoWrapper">
    <youtube-video video-id="webVideoUrl" player="player" player-vars="playerVars"></youtube-video>
</div>

My player parameters are:

$scope.playerVars = {
                    autoplay:$scope.stream.autoPlay,
                    playlist:$scope.stream.videoUrl,
                    controls:1,
                    fs:0,
                    modestbranding:1,
                    rel:0,
                    enablejsapi:1,
                    loop:1,
                    showinfo:0,
                    playsinline:1
                };

The playsinline:1 parameter should disable the force fullscreen when a mobile iOS user plays the YouTube video. But this is not working. I have tried it on iPhone 5s to 8 (I believe). Anyone have any ideas? Thank you in advance.

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

1 participant