Skip to content

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

Description

@mcarthurnick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions