embedded.php
4 years ago
external_url.php
4 years ago
html5.php
4 years ago
shortcode.php
4 years ago
video.php
5 years ago
vimeo.php
4 years ago
youtube.php
4 years ago
html5.php
31 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 | |
| 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/html5' ); |
| 23 | ?> |
| 24 | <div class="tutor-single-lesson-segment tutor-lesson-video-wrap"> |
| 25 | <video poster="<?php echo esc_url( $poster_url ); ?>" id="tutorPlayer" playsinline controls > |
| 26 | <source src="<?php echo wp_get_attachment_url( $video_info->source_video_id ); ?>" type="<?php echo esc_attr( tutor_utils()->avalue_dot( 'type', $video_info ) ); ?>"> |
| 27 | </video> |
| 28 | </div> |
| 29 | <?php |
| 30 | do_action( 'tutor_lesson/single/after/video/html5' ); ?> |
| 31 |