embedded.php
5 years ago
external_url.php
5 years ago
html5.php
5 years ago
video.php
5 years ago
vimeo.php
5 years ago
youtube.php
5 years ago
external_url.php
30 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 | $video_info = tutor_utils()->get_video_info(); |
| 17 | |
| 18 | |
| 19 | $poster = tutor_utils()->avalue_dot('poster', $video_info); |
| 20 | $poster_url = $poster ? wp_get_attachment_url($poster) : ''; |
| 21 | |
| 22 | do_action('tutor_lesson/single/before/video/external_url'); |
| 23 | ?> |
| 24 | <div class="tutor-single-lesson-segment tutor-lesson-video-wrap"> |
| 25 | <video poster="<?php echo $poster_url; ?>" id="tutorPlayer" playsinline controls > |
| 26 | <source src="<?php echo tutor_utils()->array_get('source_external_url', $video_info); ?>" type="<?php echo tutor_utils()->avalue_dot('type', $video_info); ?>"> |
| 27 | </video> |
| 28 | </div> |
| 29 | <?php |
| 30 | do_action('tutor_lesson/single/after/video/external_url'); ?> |