Skip to content

Instantly share code, notes, and snippets.

@nasustim
Created September 2, 2019 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nasustim/a5cc039882224c472555e4b5628f4ab6 to your computer and use it in GitHub Desktop.
Save nasustim/a5cc039882224c472555e4b5628f4ab6 to your computer and use it in GitHub Desktop.
モバイル端末で映像が再生されている様子をdev toolで手軽に表示するためのHTMLファイル
<!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