私は最近、video.js をいじって html5 でビルドを開始しました。
ie8 を除くすべてのブラウザで動作するビデオがあります。
ie8 の問題は、ビデオは再生されますが、コントロールがないことです。
以下の私のコードを参照してください:-
<!doctype html>
<!--[if IE 8]><html class="ie8" dir="ltr" lang="en"><![endif]-->
<!--[if IE 9]><html class="ie9" dir="ltr" lang="en"><![endif]-->
<!--[if gt IE 9]><!--> <html dir="ltr" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="author" content="Storm Creative" />
<title>Ventrica <?php echo $title; ?></title>
<script src="<?php echo DIRECTORY; ?>assets/scripts/utils/modernizr.min.js"></script>
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>
<?php foreach ( $stylesheets as $style ): ?>
<link rel="stylesheet" href="<?php echo $style; ?>" />
<?php endforeach; ?>
</head>
<body>
<div class="header_img"></div>
<div class="wrapper">
<?php include "assets/includes/navigation.php"; flush(); ?>
<div class="video_section">
<div class="mac">
<div class="screen"></div>
<video autoplay="" controls="" loop="" width="310" height="185" class="mac_player video-js vjs-default-skin" id="js-video" preload="auto" data-setup='{"techOrder": ["html5", "flash"]}'> <source src="assets/video/large.webm" type='video/webm; codecs="vp8, vorbis"' />
<source src="assets/video/large.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="assets/video/large.ogv" type='video/ogg; codecs="theora, vorbis"' />
<object id="flash_fallback_1" class="vjs-flash-fallback" width="310" height="185">
<embed width="310" height="185" src="assets/video/large.swf" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</video>
</div>
<div class="see_team">
<h3 class="hidetxt">See Our team in action...</h3>
<p><b>Watch our video and see our team in action to learn more about our multilingual services, quality assurance and training.</b></p>
<p>If you are looking for a company to help manage your customer communication then you will want to partner with a contact centre that inspires trust, demonstrates credibility and has already been chosen by numerous “Blue Chip” companies to handle their customer contact...</p>
<a href="">Choose Ventrica</a>
</div>
</div>
<script>
var myPlayer = _V_('js-video');
_V_("js-video").ready(function(){
myPlayer.volume(0);
var onFullScreen = function(){
if (this.isFullScreen) {
this.volume(1);
myPlayer.currentTime(0);
} else {
this.volume(0);
}
};
myPlayer.addEvent("fullscreenchange", onFullScreen);
});
</script>
誰もこの問題を抱えていましたか?
ありがとう。