Ich bin auf die Implementierung von Inline-Videos vor iOS10
.Video Inline iOS funktioniert nicht
Ich habe bei Verwendung this library
suchenDiese für die Inline-Videos auf iOS10
funktioniert, aber nicht für Pre iOS10
.
I v bin mit 8.3 von iOS und v600.1.4 von Safari
Mein js sieht aus wie dieses
var video = $('video').get(0);
makeVideoPlayableInline(video);
video.addEventListener('touchstart', function() {
video.play();
});
Und die html sieht wie folgt aus
<video src='http://www.w3schools.com/html/mov_bbb.mp4' class="video-player video-one" id="video-background" autoplay muted playsinline>
</video>
CSS
.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
opacity: 0;
pointer-events: none;
width: 5px;
}
Es gab einen [Bug in dieser Version.] (Https://github.com/bfredit-it/iphone-inline-video/issues/99) Es ist jetzt behoben –