embedded.php
4 years ago
external_url.php
4 years ago
html5.php
4 years ago
shortcode.php
4 years ago
video.php
4 years ago
vimeo.php
4 years ago
youtube.php
4 years ago
external_url.php
35 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display Video HTML5 |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * @author themeum |
| 7 | * @url https://themeum.com |
| 8 | * |
| 9 | * @package TutorLMS/Templates |
| 10 | * @version 1.4.3 |
| 11 | */ |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | $video_info = tutor_utils()->get_video_info(); |
| 18 | $poster = tutor_utils()->avalue_dot('poster', $video_info); |
| 19 | $poster_url = $poster ? wp_get_attachment_url($poster) : ''; |
| 20 | |
| 21 | do_action( 'tutor_lesson/single/before/video/external_url' ); |
| 22 | ?> |
| 23 | |
| 24 | <?php if($video_info ): ?> |
| 25 | <div class="tutor-video-player"> |
| 26 | <input type="hidden" id="tutor_video_tracking_information" value="<?php echo esc_attr(json_encode($jsonData??null)); ?>"> |
| 27 | <div class="loading-spinner" area-hidden="true"></div> |
| 28 | <video poster="<?php echo $poster_url; ?>" class="tutorPlayer" playsinline controls > |
| 29 | <source src="<?php echo tutor_utils()->array_get('source_external_url', $video_info); ?>" type="<?php echo tutor_utils()->avalue_dot('type', $video_info); ?>"> |
| 30 | </video> |
| 31 | </div> |
| 32 | <?php endif; ?> |
| 33 | |
| 34 | <?php do_action( 'tutor_lesson/single/after/video/external_url' ); ?> |
| 35 |