使用jw player 5构建视频共享网站,
在这里挣扎
示例1:
'backcolor': "{/literal}{$smarty.const._BGCOLOR}{literal}",
'frontcolor': "{/literal}{$smarty.const._TIMECOLOR}{literal}",
'screencolor': "000000",
'repeat': "false",
'logo': "{/literal}{$smarty.const._WATERMARKURL}{literal}",
'linktarget': "_blank",
'link': "{/literal}{$smarty.const._WATERMARKLINK}{literal}",
'image': "{/literal}{$video_data.preview_image}{literal}",
'sharing-3': {
'link': '{/literal}{$video_data.video_href}{literal}',
'code': encodeURIComponent('{/literal}{$embedcode}{literal}')
}
以及如何将此部分添加到示例2中:
'sharing-3': {
'link': '{/literal}{$video_data.video_href}{literal}',
'code': encodeURIComponent('{/literal}{$embedcode}{literal}')
}
示例2:
$jw_flashvars .= '&config='. urlencode(_URL ."/players/jwplayer5/jwembed.xml"); // @since v2.2
$jw_flashvars .= '&backcolor='. _BGCOLOR;
$jw_flashvars .= '&frontcolor='. _TIMECOLOR;
$jw_flashvars .= '&screencolor=000000';
$jw_flashvars .= '&bufferlength=5';
$jw_flashvars .= '&plugins=timeslidertooltipplugin-2';