File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -439,6 +439,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
439439 return false ;
440440 } else {
441441 $ type = get_post_mime_type ( $ all_atts ['media-id ' ] );
442+ $ type = ( 'video/quicktime ' ) ? 'video/mp4 ' : $ type ;
442443 $ source = '<source type=" ' . esc_attr ( $ type ) . '" src=" ' . esc_url ( $ media_id ) . '"%datasrc%> ' . PHP_EOL ;
443444 }
444445 }
@@ -447,6 +448,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
447448 $ media_desc_id = ( is_numeric ( $ all_atts ['media-desc-id ' ] ) ) ? wp_get_attachment_url ( $ all_atts ['media-desc-id ' ] ) : $ all_atts ['media-desc-id ' ];
448449 if ( $ media_desc_id ) {
449450 $ datatype = get_post_mime_type ( $ all_atts ['media-desc-id ' ] );
451+ $ datatype = ( 'video/quicktime ' ) ? 'video/mp4 ' : $ datatype ;
450452 $ datasource .= ( $ type === $ datatype ) ? ' data-desc-src=" ' . esc_url ( $ media_desc_id ) . '" ' : '' ;
451453 }
452454 }
@@ -455,6 +457,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
455457 $ media_asl_id = ( is_numeric ( $ all_atts ['media-asl-id ' ] ) ) ? wp_get_attachment_url ( $ all_atts ['media-asl-id ' ] ) : $ all_atts ['media-desc-id ' ];
456458 if ( $ media_asl_id ) {
457459 $ datatype = get_post_mime_type ( $ all_atts ['media-asl-id ' ] );
460+ $ datatype = ( 'video/quicktime ' ) ? 'video/mp4 ' : $ datatype ;
458461 $ datasource .= ( $ type === $ datatype ) ? ' data-sign-src=" ' . esc_url ( $ media_asl_id ) . '" ' : '' ;
459462 }
460463 }
You can’t perform that action at this time.
0 commit comments