作者 lyh

gx

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