| @@ -202,9 +202,9 @@ | ||
| 202 | 202 | if ( ! $settings['background_video_link'] ) { |
| 203 | 203 | return; |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | - $video_properties = Embed::get_video_properties( $settings['background_video_link'] ); | |
| 206 | + $is_embed_video = Embed::is_embed_video( $settings['background_video_link'] ); | |
| 207 | 207 | |
| 208 | 208 | $this->add_render_attribute( |
| 209 | 209 | 'background-video-container', |
| 210 | 210 | [ |
| @@ -216,9 +216,9 @@ | ||
| 216 | 216 | $this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-mobile' ); |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | ?><div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>> |
| 220 | - <?php if ( $video_properties ) : ?> | |
| 220 | + <?php if ( $is_embed_video ) : ?> | |
| 221 | 221 | <div class="elementor-background-video-embed" role="presentation"></div> |
| 222 | 222 | <?php |
| 223 | 223 | else : |
| 224 | 224 | $video_tag_attributes = 'autoplay muted playsinline'; |