Created
September 2, 2019 11:39
-
-
Save nasustim/a5cc039882224c472555e4b5628f4ab6 to your computer and use it in GitHub Desktop.
モバイル端末で映像が再生されている様子をdev toolで手軽に表示するためのHTMLファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<title>video player</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=360,initial-scale=1"> | |
<style> | |
html, body, video{ | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<video id="video" controls></video> | |
</body> | |
</html> | |
<script> | |
var path = window.prompt("video.htmlからmp4ファイルまでの相対パス"); | |
var video = document.getElementById("video"); | |
video.setAttribute("src", path); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment