嗨,我试图让视频播放器响应我的代码:
<!-- Load projekktor css -->
<link rel="stylesheet" href="themes/maccaco/projekktor.style.css" type="text/css" media="screen" />
<!-- Load jquery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- load projekktor js -->
<script type="text/javascript" src="projekktor-1.4.00-test.js"></script> </head>
<body>
<div id="player_a" class="projekktor">
<noscript><p>No JavaScript support.</p></noscript>
</div>
<script type="text/javascript">
$(document).ready(function() {
projekktor('#player_a', {
controls: true,
autoplay: true,
title: 'Projekktor - Inline HLS video support',
playerFlashMP4: 'swf/StrobeMediaPlayback/StrobeMediaPlayback_hls_mss.swf',
playerFlashMP3: 'swf/StrobeMediaPlayback /StrobeMediaPlayback_hls_mss.swf',
width: 640,
height: 385,
platforms: ['browser', 'ios', 'android', 'flash', 'native'],
playlist: [
{
0: {src: "http://ip:1935/videostreaming/videostreaming/playlist.m3u8", type: "application/mpegURL", streamType: "httpVideo"}, // your HLS manifest goes here
1: {src: "", type: "video/mp4", streamType: "http"} // you can even add progressive fallback
}
]
}
);
});
</script>
</body>
当我把宽度:100%和高度100%时,视频消失,但我听起来如何解决这个问题。
谢谢。答案 0 :(得分:0)
好吧,如果这是一个错字..
最好使用调试器来修改它。这里有很多依赖。