Skip to content

Commit

Permalink
Allow demo to play video inline on iOS
Browse files Browse the repository at this point in the history
Without this attribute, iOS playbacks will force fullscreen mode.

Issue #997

Change-Id: I32bbe3d16f68d91c5fb3083c5d5862967140d140
  • Loading branch information
joeyparrish committed Apr 15, 2019
1 parent 65e9957 commit c3afb84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demo/index.html
Expand Up @@ -129,7 +129,7 @@ <h1>Shaka Player <span id="version"></span></h1>
</div>

<div data-shaka-player-container data-shaka-player-cast-receiver-id="7B25EC44">
<video autoplay data-shaka-player id="video"></video>
<video autoplay playsinline data-shaka-player id="video"></video>
</div>

<details id="logSection">
Expand Down
1 change: 1 addition & 0 deletions ui/ui.js
Expand Up @@ -206,6 +206,7 @@ shaka.ui.Overlay.scanPageForShakaElements_ = function() {

if (!video) {
video = document.createElement('video');
video.setAttribute('playsinline', '');
container.appendChild(video);
}

Expand Down

0 comments on commit c3afb84

Please sign in to comment.