在JWPlayer帐户中从“您的计算机”发布视频后;我得到格式化的嵌入式代码:
` <div id='playerexampleid'></div>
<script type='text/javascript'>
jwplayer('playerexampleid').setup({
playlist: '//content.jwplatform.com/feed/exampleid.rss',
width: '244',
height: '163'
}); `
The URL "content.jwplatform.com/feed/exampleid.rss" displays 3 quality levels i.e. 720p ; 360p ; 180p, with default="true" set for 360p.
所以,我想知道如何在这个rss中将720p设置为默认值?或免费帐户(在jwplayer上托管文件)不允许这个?或者还有其他办法吗?
Plz注意:我已使用exampleid替换了真实的id代码
答案 0 :(得分:1)
尝试以下方法:
<script type='text/javascript'>
jwplayer('playerexampleid').setup({
playlist: '//content.jwplatform.com/feed/exampleid.rss',
width: '244',
height: '163'
});
jwplayer().onPlay(function() {
jwplayer().setCurrentQuality(3);
});
更新,请使用:
jwplayer('player9nmjbjex').setup({
playlist: '//content.jwplatform.com/jw6/9nmjbjex.xml',
primary: 'flash',
width: '244',
height: '163'
});
jwplayer().onPlay(function() {
jwplayer().setCurrentQuality(3);
});