File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,9 @@ public function filter_video_tags( $content ) {
266266 }
267267
268268 $ url = $ this ->media ->filter ->get_url_from_tag ( $ tag );
269+ if ( false === $ url ){
270+ continue ;
271+ }
269272 $ attachment_id = $ this ->media ->get_id_from_url ( $ url );
270273 // Enable Autoplay for this video.
271274 if ( false !== strpos ( $ tag , 'autoplay ' ) ) {
@@ -369,7 +372,7 @@ public function print_video_scripts() {
369372
370373 if ( videoElement.length === 1 ) {
371374 videoElement = videoElement[0];
372- videoElement.style.width = '100%';
375+
373376
374377 <?php if ( $ this ->config ['video_freeform ' ] ): ?>
375378 videoElement.src = videoElement.src.replace(
You can’t perform that action at this time.
0 commit comments