1
0
Fork 0
mirror of https://github.com/xbgmsharp/videojs-rotatezoom synced 2025-10-03 17:59:31 +02:00
videojs-rotatezoom/example/index.html

41 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Video.js Zoom Rotate Example</title>
<link href="./video.js/video-js.css" rel="stylesheet">
<script src="./video.js/video.js"></script>
<script>
videojs.options.flash.swf = "./video.js/video-js.swf"
</script>
<!-- <script src="../videojs.zoomrotate.js"></script> -->
<!-- For debugging -->
<script src="../src/videojs.zoomrotate.js"></script>
<style>
p {
background-color: #eee;
border: thin solid #777;
padding: 10px;
}
</style>
</head>
<body>
<p>The zoomrotate plugin rotate the poster and the video. Give it a shot:</p>
<video id="video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="360" data-setup='{"rotate": "90", "zoom": "1.5"}'>
<source src="http://www.archive.org/download/AnimatedMechanicalArtPiecesAtMit/P1120973_512kb.mp4" type="video/mp4">
<source src="http://www.archive.org/download/AnimatedMechanicalArtPiecesAtMit/P1120973.ogv" type="video/ogg">
<p>Video Playback Not Supported<br/>Your browser does not support the video tag.</p>
</video>
<script>
// initialize video.js
var my_video_id = videojs('video_1');
// Set value to the plugin
my_video_id.zoomrotate({
rotate: 90,
zoom: 1.5
});
</script>
</body>
</html>