| @@ -1479,9 +1479,9 @@ | ||
| 1479 | 1479 | ?> <?php $this->print_render_attribute_string( '_wrapper' ); ?>> |
| 1480 | 1480 | <?php |
| 1481 | 1481 | if ( 'video' === $settings['background_background'] ) : |
| 1482 | 1482 | if ( $settings['background_video_link'] ) : |
| 1483 | - $is_embed_video = Embed::is_embed_video( $settings['background_video_link'] ); | |
| 1483 | + $video_properties = Embed::get_video_properties( $settings['background_video_link'] ); | |
| 1484 | 1484 | |
| 1485 | 1485 | $this->add_render_attribute( |
| 1486 | 1486 | 'background-video-container', |
| 1487 | 1487 | [ |
| @@ -1493,9 +1493,9 @@ | ||
| 1493 | 1493 | $this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-mobile' ); |
| 1494 | 1494 | } |
| 1495 | 1495 | ?> |
| 1496 | 1496 | <div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>> |
| 1497 | - <?php if ( $is_embed_video ) : ?> | |
| 1497 | + <?php if ( $video_properties ) : ?> | |
| 1498 | 1498 | <div class="elementor-background-video-embed" role="presentation"></div> |
| 1499 | 1499 | <?php |
| 1500 | 1500 | else : |
| 1501 | 1501 | $video_tag_attributes = 'autoplay muted playsinline'; |