在 JwPlayer 中,如何回退播放模式以直接下载?
我的场景是RTMP->HLS->Direct Download
我当前的代码:
jwplayer("<?php echo $this->id?>").setup({
autostart: 'true' ,
flashplayer: "<?php echo CHtml::asset($this->_path.'/jwplayer.flash.swf')?>",
width:<?php echo $this->width?>,
height:<?php echo $this->height?>,
playlist: [{
sources: [
{
//Desktop: Use RTMP protocol and played by flash.
file: "<?php echo $this->rtmpPath;?>"
},
{
//Mobile: Use HLS protocol and played by HTML5
file: "<?php echo $this->hlsPath;?>",
},
{
//Direct Download
??
file: "<?php echo $this->ddPath;?>",
},
]
}],
primary:"html5",
});
..................................................