PHP 获取微视无水印源地址_origin-php-watermark-api

try {

if (strpos($url, "douyin.com") || strpos($url, "iesdouyin.com")) {

$result = VideoManager::DouYin()->start($url);

} elseif (strpos($url, "huoshan.com")) {

$result = VideoManager::HuoShan()->start($url);

} elseif (strpos($url, "ziyang.m.kspkg.com") || strpos($url, "kuaishou.com") || strpos($url, "gifshow.com") || strpos($url, "chenzhongtech.com")) {

$result = VideoManager::KuaiShou()->start($url);

} elseif (strpos($url, "www.pearvideo.com")) {

$result = VideoManager::LiVideo()->start($url);

} elseif (strpos($url, "www.meipai.com")) {

$result = VideoManager::MeiPai()->start($url);

} elseif (strpos($url, "immomo.com")) {

$result = VideoManager::MoMo()->start($url);

} elseif (strpos($url, "ippzone.com")) {

$result = VideoManager::PiPiGaoXiao()->start($url);

} elseif (strpos($url, "pipix.com")) {

$result = VideoManager::PiPiXia()->start($url);

} elseif (strpos($url, "longxia.music.xiaomi.com")) {

$result = VideoManager::QuanMingGaoXiao()->start($url);

} elseif (strpos($url, "shua8cn.com")) {

$result = VideoManager::ShuaBao()->start($url);

} elseif (strpos($url, "toutiaoimg.com") || strpos($url, "toutiaoimg.cn")) {

$result = VideoManager::TouTiao()->start($url);

} elseif (strpos($url, "weishi.qq.com")) {

$result = VideoManager::WeiShi()->start($url);

} elseif (strpos($url, "mobile.xiaokaxiu.com")) {

$result = VideoManager::XiaoKaXiu()->start($url);

} elseif (strpos($url, "xigua.com")) {

$result = VideoManager::XiGua()->start($url);

} elseif (strpos($url, "izuiyou.com")) {

$result = VideoManager::ZuiYou()->start($url);

} else {

return [

'status' => false,

'data' => '您输入的链接错误!'

];

}

if (!$result) {

return [

'status' => false,

'data' => '您输入的链接错误!'

];

}

return [

'status' => true,

'data' => $result

];

} catch (\Exception $e) {

return [

'status' => false,

'data' => $e->getMessage()

];

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值