作者 lyh

gx

... ... @@ -70,7 +70,7 @@ class EditVideoMp4 extends Command
*/
public function getVideoSrc($html){
$videoArr = [];
$pattern = '/<video.*?src=[\'"]([^\'"]+)[\'"].*?>/i';
$pattern = '/<img.*?src=[\'"]([^\'"]+)[\'"].*?>/i';
preg_match_all($pattern, $html, $matches);
$srcLinks = $matches[1];
foreach ($srcLinks as $link) {
... ...