苹果CMSv10最全系统标签模板标签仿站必备-视频播放页独有标签
=======视频播放页独有标签======={$param.sid} 当前播放组序号{$param.nid} 当前集数序号{$obj.player_info.link_next} 下一页地址,最后一页时此链接将当前页链接{$obj.player_info.link_pre} 上一页地址,第一页时此链接将当前页链接
{$obj['vod_play_list'][$param['sid']]} 获取当前播放组数据{$obj['vod_play_list'][$param['sid']]['player_info']}播放器信息{$obj['vod_play_list'][$param['sid']]['server_info']}服务器组信息{$obj['vod_play_list'][$param['sid']]['url_count']} 总集数{$obj['vod_play_list'][$param['sid']]['urls']} 集数信息{$obj['vod_play_list'][$param['sid']]['urls'][$param['nid']]} 当前集数信息{$obj['vod_play_list'][$param['sid']]['urls'][$param['nid']]['name']} 当前集数名称{$obj['vod_play_list'][$param['sid']]['urls'][$param['nid']]['url']} 当前集数url
下载页获取以上信息,请把vod_play_list改为vod_down_list,其他参数不变
{$player_data} 播放数据{$player_js} 加载播放器=======获取与当前视频相关联视频和关联文章数据======<h2>与<strong>“{$obj.vod_name}”</strong>关联的视频</h2><ul class="img-list dis"> {maccms:vod num="6" ids="'.$obj['vod_rel_vod'].'" order="desc" by="time"} <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p></p><i>{$vo.vod_version}</i><em></em></a></li> {/maccms:vod}</ul><h2>与<strong>“{$obj.vod_name}”</strong>关联的文章</h2><ul class="img-list dis"> {maccms:art num="6" ids="'.$obj['vod_rel_art'].'" order="desc" by="time"} <li><a href="{:mac_url_art_detail($vo)}" title="{$vo.art_name}"><img src="{:mac_url_img($vo.art_pic)}" alt="{$vo.art_name}"/><h2>{$vo.art_name}</h2><p></p><i>{$vo.vod_from}</i><em></em></a></li> {/maccms:art}</ul>
版权跳转?配合后台提供的跳转url字段,在内容页播放页通用。<script> {if condition="$obj.vod_jumpurl neq ''"} location.href='{$obj.vod_jumpurl}'; {/if}</script>如果想判断每集是否跳转,可把要跳转的集数地址写成固定的格式,方便读取和操作。比如火影忍者有10集, 第2集版权跳转,地址写为jump://baidu.com在播放页加入代码 只跳转这一集<script> {if condition="strpos($obj['vod_play_list'][$param['sid']]['urls'][$param['nid']]['url'],'jump:')!==false "} location.href='{$obj['vod_play_list'][$param['sid']]['urls'][$param['nid']]['url']|str_replace="jump:","http:",###}'; {/if}</script>
页:
[1]