作者 lyh

gx

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