您当前位置: 首页 旅游服务 微信视频读书是怎么赚钱

类型: 旅游服务 版本: V8.8
大小: 1,793.4 时间: 2025-11-22





[WordPress插件怎样安装WordPress插件安装方法]
WordPress视频播放插件(Smartideo)安装方法
你可以在后台插件管理页面中直接搜索Smartideo并安装.

或者上传文件夹smartideo至/wp-content/plugins/目录.
在插件管理页面中激活Smartideo.

Smartideo插件使用方法
你可以直接粘贴视频播放也完整的URL到编辑器(单独一行),就可以加载视频播放器。
URL地址格式如下
http://v.youku.com/v_show/id_XMTYzNTgxNTMy.html
http://www.tudou.com/programs/view/YBdHhxJqrLY/
http://www.56.com/u35/v_MTEwMjM5NDcy.html
http://v.qq.com/page/o/9/f/o0142tt1m9f.html
http://v.qq.com/cover/t/tyeqdw6rof7t5ow/p0015kjlai9.html
http://my.tv.sohu.com/us/94469256/77228432.shtml
http://www.wasu.cn/Play/show/id/5079941
http://v.yinyuetai.com/video/2207109
http://v.ku6.com/show/P0Ib_pTne6-FBSa1AbtKUQ...html
http://www.letv.com/ptv/vplay/20932037.html
在wordpress上播放在线视频要怎么设置呢?有了这款Smartideo视频插件就简单多了,它可以帮助你快速在wordpress添加在线视频,支持手机、平板的HTML5播放,它支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等热门网站的视频。闪电侠app下载神器-闪电侠app官方1.2.3 最新版
<?php
/*
PluginName:Smartideo
PluginURI:http://www.fengziliu.com/
Description:Smartideo是为WordPress添加对在线视频支持的一款插件(支持手机、平板等设备HTML5播放)。目前支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等网站。
Version:1.2
Author:FensLiu
AuthorURI:http://www.fengziliu.com/smartideo-for-wordpress.html
*/
define('SMARTIDEO_VERSION','1.0');
define('SMARTIDEO_URL',plugins_url('',__FILE__));
define('SMARTIDEO_PATH',dirname(__FILE__));
$smartideo=newsmartideo();
classsmartideo{
private$width='100%';
private$height='500';
private$mobile_width='100%';
private$mobile_height='250';
publicfunction__construct(){
if(is_admin()){
add_action('admin_menu',array($this,'admin_menu'));
}
$option=get_option('smartideo_option');
if(!empty($option)){
$option=json_decode($option,true);
}else{
$option=array();
}
extract($option);
if(!empty($width)){
$this->width=$width;
}
if(!empty($height)){
$this->height=$height;
}
if(!empty($mobile_width)){
$this->mobile_width=$mobile_width;
}
if(!empty($mobile_height)){
$this->mobile_height=$mobile_height;
}
wp_embed_register_handler('smartideo_tudou',
'#https?://(?:www.)?tudou.com/(?:programs/view|listplay/(?<list_id>[a-z0-9_=-]+))/(?<video_id>[a-z0-9_=-]+)#i',
array($this,'smartideo_embed_handler_tudou'));
wp_embed_register_handler('smartideo_56',
'#https?://(?:www.)?56.com/[a-z0-9]+/(?:play_album-aid-[0-9]+_vid-(?<video_id1>[a-z0-9_=-]+)|v_(?<video_id2>[a-z0-9_=-]+))#i',
array($this,'smartideo_embed_handler_56'));
wp_embed_register_handler('smartideo_youku',
'#https?://v.youku.com/v_show/id_(?<video_id>[a-z0-9_=-]+)#i',
array($this,'smartideo_embed_handler_youku'));
wp_embed_register_handler('smartideo_qq',
'#https?://v.qq.com/(?:cover/g/[a-z0-9_.]+?vid=(?<video_id1>[a-z0-9_=-]+)|(?:[a-z0-9/]+)/(?<video_id2>[a-z0-9_=-]+))#i',
array($this,'smartideo_embed_handler_qq'));
wp_embed_register_handler('smartideo_sohu',
'#https?://my.tv.sohu.com/us/(?:d+)/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_sohu'));
wp_embed_register_handler('smartideo_wasu',
'#https?://www.wasu.cn/play/show/id/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_wasu'));
wp_embed_register_handler('smartideo_yinyuetai',
'#https?://v.yinyuetai.com/video/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_yinyuetai'));
wp_embed_register_handler('smartideo_ku6',
'#https?://v.ku6.com/show/(?<video_id>[a-z0-9-_.]+).html#i',
array($this,'smartideo_embed_handler_ku6'));
wp_embed_register_handler('smartideo_letv',
'#https?://www.letv.com/ptv/vplay/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_letv'));
}
publicfunctionsmartideo_embed_handler_tudou($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://www.tudou.com/programs/view/html5embed.action?type=0&code={$matches['video_id']}");
}else{
$embed=$this->get_embed("http://www.tudou.com/v/{$matches['video_id']}/&resourceId=0_05_05_99&bid=05/v.swf");
}
returnapply_filters('embed_tudou',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_56($matches,$attr,$url,$rawattr){
$matches['video_id']=$matches['video_id1']==''?$matches['video_id2']:$matches['video_id1'];
if(wp_is_mobile()){
$embed=$this->get_iframe("http://www.56.com/iframe/{$matches['video_id']}");
}else{
$embed=$this->get_embed("http://player.56.com/v_{$matches['video_id']}.swf");
}
returnapply_filters('embed_56',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_youku($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://player.youku.com/embed/{$matches['video_id']}");
}else{
$embed=$this->get_embed("http://player.youku.com/player.php/sid/{$matches['video_id']}/v.swf");
}
returnapply_filters('embed_youku',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_qq($matches,$attr,$url,$rawattr){
$matches['video_id']=$matches['video_id1']==''?$matches['video_id2']:$matches['video_id1'];
if(wp_is_mobile()){
$embed=$this->get_iframe("http://v.qq.com/iframe/player.html?vid={$matches['video_id']}");
}else{
$embed=$this->get_embed("http://static.video.qq.com/TPout.swf?vid={$matches['video_id']}");
}
returnapply_filters('embed_qq',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_sohu($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://tv.sohu.com/upload/static/share/share_play.html#{$matches['video_id']}_0_0_9001_0");
}else{
$embed=$this->get_embed("http://share.vrs.sohu.com/my/v.swf&topBar=1&id={$matches['video_id']}&autoplay=false&xuid=&from=page");
}
returnapply_filters('embed_sohu',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_wasu($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://www.wasu.cn/Play/iframe/id/{$matches['video_id']}");
}else{
$embed=$this->get_embed("http://s.wasu.cn/portal/player/20141216/WsPlayer.swf?mode=3&vid={$matches['video_id']}&auto=0&ad=4228");
}
returnapply_filters('embed_wasu',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_yinyuetai($matches,$attr,$url,$rawattr){
$embed=$this->get_embed("http://player.yinyuetai.com/video/player/{$matches['video_id']}/v_0.swf");
returnapply_filters('embed_yinyuetai',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_ku6($matches,$attr,$url,$rawattr){
$embed=$this->get_embed("http://player.ku6.com/refer/{$matches['video_id']}/v.swf");
returnapply_filters('embed_ku6',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_letv($matches,$attr,$url,$rawattr){
$embed=$this->get_embed("http://i7.imgs.letv.com/player/swfPlayer.swf?id={$matches['video_id']}&autoplay=0");
returnapply_filters('embed_letv',$embed,$matches,$attr,$url,$rawattr);
}
privatefunctionget_embed($url){
$embed=sprintf(
'<embedsrc="%1$s"allowFullScreen="true"quality="high"width="%2$s"height="%3$s"allowScriptAccess="always"type="application/x-shockwave-flash"></embed>',
$url,$this->width,$this->height);
return$embed;
}
privatefunctionget_iframe($url){
$iframe=sprintf(
'<iframesrc="%1$s"width="%2$s"height="%3$s"frameborder="0"allowfullscreen="true"></iframe>',
$url,$this->mobile_width,$this->mobile_height);
return$iframe;
}
publicfunctionadmin_menu(){
add_plugins_page('Smartideo设置','Smartideo设置','manage_options','smartideo_settings',array($this,'admin_settings'));
}
publicfunctionadmin_settings(){
if($_POST['smartideo_submit']=='保存'){
$param=array('width','height','mobile_width','mobile_height');
$json=array();
foreach($_POSTas$key=>$val){
if(in_array($key,$param)){
$json[$key]=$val;
}
}
$json=json_encode($json);
update_option('smartideo_option',$json);
}
$option=get_option('smartideo_option');
if(!empty($option)){
$option=json_decode($option,true);
}
if(empty($option['width'])){
$option['width']='100%';
}
if(empty($option['height'])){
$option['height']='500';
}
if(empty($option['mobile_width'])){
$option['mobile_width']='100%';
}
if(empty($option['mobile_height'])){
$option['mobile_height']='250';
}
echo'<h2>Smartideo设置</h2>';
echo'<formaction=""method="post">
<tableclass="form-table">
<trvalign="top">
<thscope="row">播放器宽度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="width"value="'.$option['width'].'"></label>
<br/>
<pclass="description">默认宽度为100%</p>
</td>
</tr>
<trvalign="top">
<thscope="row">播放器高度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="height"value="'.$option['height'].'"></label>
<br/>
<pclass="description">默认高度为500px</p>
</td>
</tr>
<trvalign="top">
<thscope="row">移动设备播放器宽度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="mobile_width"value="'.$option['mobile_width'].'"></label>
<br/>
<pclass="description">手机、平板等设备访问时,默认宽度为100%</p>
</td>
</tr>
<trvalign="top">
<thscope="row">移动设备播放器高度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="mobile_height"value="'.$option['mobile_height'].'"></label>
<br/>
<pclass="description">手机、平板等设备访问时,默认高度为250px</p>
</td>
</tr>
</table>
<pclass="submit"><inputtype="submit"name="smartideo_submit"id="submit"class="button-primary"value="保存"></p>
</form>';
}
}
想迅速赚钱
1,696.2M
...
基金定投是怎么赚钱
1,291.1M
看到别人的QQ空间里面有好多的好听的背景音乐,但是不足道怎么去提前也不知道这首歌曲是什么名字,是不是非常的纠结啊,那就赶快来试试提取QQ空间开场音乐程序!提取Q...
贝贝棋牌手机充值
1,210.3M
想要给自己的手机下载当前最新最热门的应用吗?想体验一下全新的手机下载应用吗?那就不要在想了,赶快在自己的手机里面安装这款十字猫软件店吧,它会带着你领略不一样的下...
小说打字赚钱的软件
1,528.4M
UPUPOO加藤惠动态视频桌面壁纸是一款包含了最新的动态视频桌面软件,里面有加藤惠的、博丽灵梦、极乐净土等不同的二次元动态桌面,特别的好玩,喜欢的朋友快来下载吧...
兼职销售需要什么条件
1,952.5M
花生地铁wifi是一款可以帮助大家免费的连接地铁wifi的手机工具,有了它大家就可以在地铁上在线观看各种电视电影直播等,非常的好用,经常坐地铁上班的朋友们都可以...
棋牌室文明创建
253.5M
晋祠app(晋祠地图导航)是一款由驴迹导游为晋祠开发的电子地图导航软件,卡通景点地图导航,为你带来独特的新鲜感,配置的景点背后的故事,满足你对景点的好奇心,GP...
京东怎样赚佣金
453.5M
对于一直钟爱我们东坡下载的伙伴来说,今天就给那些准备考公务员的朋友送个大礼包,就是2015年公务员考试视频课件,这可是经过千幸万苦才弄到的,小编就这样送个大家了...
佣金试用平台违法吗
1,760.8M
永恒之魂是全新的3DMMO国战类手游,最新的良心仙侠之作,虽然是手游但是游戏有着可以媲美端游的高品质画面与场景,加上丰富的游戏玩法,可联机可挂机,解放双手,还能...
傍晚兼职的工作
886.1M
守卫宿舍3161.2测试版,是一张十分不错的魔兽防守角色扮演地图的最新版本,此次对系统进行了大幅度的优化以及减少游戏中的bug,还针对牛逼系统进行了优化,其效果...
快速挣钱的软件排行榜
1,226.0M
139邮箱手机客户端是139邮箱官方app,软件畅享免输入极速登录体验,使用户更加方便的管理自己邮箱。用户通过手机客户端、手机短信、彩信、WEB或者WAP上网等...
代玩兼职彩票日赚1000
1,349.0M
这款游戏是好玩的良心热血传奇手机游戏,以经典的龙黄传奇为亮点,可以在游戏之中体验热血的战斗哦,游戏副本是超级多的,经典良心传奇带给你更多惊喜玩法哦。良心传奇龙皇...
现在能赚钱的手机app
1,367.3M
可可婚礼免广告全服装是一款超级好玩的3D卡通换装模拟手游。玩家可免费使用全部服装与饰品,自由打扮可可公主后,挑选婚礼背景与帅气新郎开启趣味婚礼体验可可婚礼游戏全...
现在什么小生意挣钱
264.1M
视频加密宝是一个提供自动去水印功能的免费手机软件,软件可投屏、高清万能解码影视资源,还可以制作出符合你需求的精美视频,支持对多种视频格式互相转换转码,让你能畅享...
下载微信现金棋牌
1,560.0M
越野驾驶冒险时间是一款精品赛车冒险游戏,你需要在游戏中驾驶你的赛车进行一次激情的冒险,挑战急速竞技玩法,完成越野任务!游戏介绍扣紧,踩油门,紧紧抓住你的生命。乘...
养殖挣钱农村
361.9M
传统的情人节即将来临,2016七夕节是2016年8月9日星期二,相信很多用户都会选择在当天跟自己的心爱的人表白,小编为你带来了真挚的爱情表白生成器,这个是经典的...
调研问卷赚钱在哪里找
2025/11/08 19:04
什么副业赚钱月入过万
2025/10/29 05:09
超会赢官方棋牌
2025/10/28 16:09
玩红包能赚钱吗
2025/11/09 06:56
棋牌赚金游戏
2025/11/10 15:26
聚享游打码哪个赚钱快
2025/11/08 15:06
送外卖赚钱可以兼职么
2025/11/02 14:48
现在用手机能赚钱吗
2025/10/31 17:03
家庭赚钱项目
2025/11/06 04:00
1000块国债一天赚多少
2025/11/10 23:32
外贸独立站怎么赚钱
2025/11/06 15:42
大学城兼职网可信吗
2025/11/03 06:40
威尼斯人棋牌
2025/10/28 10:50
分期付款手机怎么赚钱
2025/11/01 06:34
掌赚app下载安装
2025/11/10 08:29
掌赚app下载安装
2025/11/10 08:29更新
想要聊天更加方便吗?小编为你推荐果果语音app,用户能自己开房间,与好朋友连麦,还能与队友开黑,一起在游戏中畅聊沟通,让你不错过任何精彩。果果语音app软件介绍...
支持 ( 184 ) 盖楼(回复)
支持 ( 50 ) 盖楼(回复)
支持 ( 77 ) 盖楼(回复)
支持 ( 140 ) 盖楼(回复)
支持 ( 58 ) 盖楼(回复)
支持 ( 103 ) 盖楼(回复)
支持 ( 135 ) 盖楼(回复)
支持 ( 83 ) 盖楼(回复)
支持 ( 153 ) 盖楼(回复)
支持 ( 115 ) 盖楼(回复)
支持 ( 58 ) 盖楼(回复)
支持 ( 9 ) 盖楼(回复)
支持 ( 132 ) 盖楼(回复)
支持 ( 178 ) 盖楼(回复)
支持 ( 196 ) 盖楼(回复)
支持 ( 50 ) 盖楼(回复)
支持 ( 195 ) 盖楼(回复)
支持 ( 63 ) 盖楼(回复)
支持 ( 29 ) 盖楼(回复)
支持 ( 31 ) 盖楼(回复)