<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>HTML5 MediaElement</title>

<script src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("language", "1");
</script>

<script src="../build/jquery.js"></script>
<script src="../build/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="../build/mediaelementplayer.css" />
</head>
<body>

<h1>MediaElementPlayer.js</h1>

<p>Recommended Setup</p>

<h2>MP4/WebM video</h2>
<video width="640" height="360" id="player2" controls="controls">
<source src="../media/video.mp4" type="video/mp4">
<source src="../media/video.webm" type="video/webm">
<source src="../media/video.ogg" type="video/ogg">
<track kind="subtitles" src="../media/srt_example_ja.srt" srclang="ja" />
<track kind="subtitles" src="../media/mediaelement.srt" srclang="en" />
<p>Your browser leaves much to be desired.</p>
</video>

<script>
$('audio,video').mediaelementplayer({
// auto-select this language (instead of starting with "None")
startLanguage:'ja',
// automatically translate into these languages
translations:['es','ar','zh','ru'],
// enable the dropdown list of languages
translationSelector: true
});
</script>

</body>
</html>



| Kenのムービー計画へ >動画狂コーナーへ>HTML5ビデオプレイヤー.へ |