Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Safari 16 videos bug
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>safari 16 videos bug</title>
<div id="count"></div>
<div id="hello"></div>
<button style="width: 300px; height: 200px; border: solid; font-size: 40px" onclick="test()">测试!</button>
var i = 0;
function test () {
hello.innerHTML = '';
count.innerHTML = '第 ' + i + ' 次播放。';
var src = '';
hello.innerHTML = '<video id="video" webkit-playsinline playsinline controls src="' + src + '">';
setTimeout(function () {
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.