html5.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Display Video HTML5 |
| 5 | * |
| 6 | * @since v.1.0.0 |
| 7 | * @author themeum |
| 8 | * @url https://themeum.com |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) |
| 12 | exit; |
| 13 | |
| 14 | $video_info = tutor_utils()->get_video_info(); |
| 15 | |
| 16 | $poster = tutor_utils()->avalue_dot('poster', $video_info); |
| 17 | $poster_url = $poster ? wp_get_attachment_url($poster) : ''; |
| 18 | |
| 19 | do_action('tutor_lesson/single/before/video/html5'); |
| 20 | ?> |
| 21 | <div class="tutor-single-lesson-segment tutor-lesson-video-wrap"> |
| 22 | <video poster="<?php echo $poster_url; ?>" id="tutorPlayer" playsinline controls > |
| 23 | <source src="<?php echo tutor_utils()->get_video_stream_url(); ?>" type="<?php echo tutor_utils()->avalue_dot('type', $video_info); ?>"> |
| 24 | </video> |
| 25 | </div> |
| 26 | <?php |
| 27 | do_action('tutor_lesson/single/after/video/html5'); ?> |