[英]responsive live streaming player projekktor
Hi im trying to make the video player responsive heres my code: 您好,我试图使视频播放器响应以下代码:
<!-- 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>
when i put width : 100% and height 100% the video dissapears but i have sound how i can fix this. 当我放宽:100%和高100%时,视频消失了,但是我有声音可以解决这个问题。
thank you. 谢谢。
Well if that was a typo.. 好吧,那是错字吧..
Best bet to mod it using the debugger. 最好选择使用调试器对其进行修改。 There are quite a lot of dependencies here. 这里有很多依赖项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.