VIP播放器整合方法
首先打开主题Functions.php,添加以下代码.支持爱奇艺,腾讯,m3u8非直播源
//VIP视频 function all_video($atts, $content=null){ return ' <iframe scrolling="no" align="middle" frameborder="0" width="100%" marginwidth="0" marginheight="0" height="460" src="https://www.ece.pw/video/index.php?url='.$content.'"></iframe> '; } add_shortcode('video','all_video');
整合DPlayer播放器教程,支持M3U8直播源。
//DPlayer播放器 function all_dp($atts, $content=null){ return ' <iframe scrolling="no" align="middle" frameborder="0" width="100%" marginwidth="0" marginheight="0" height="460" src="https://www.ece.pw/dp/?url='.$content.'"></iframe> '; } add_shortcode('dp','all_dp');
使用方法
文章内插入[video】 [/video】 dp /dp 中间视频地址即可。