Remove wp-mediaelement.css from wp_head
Move those declarations out of the action. Simply paste both of them in the functions.php file and it will work (tested). wp_deregister_script(‘wp-mediaelement’); wp_deregister_style(‘wp-mediaelement’);
Move those declarations out of the action. Simply paste both of them in the functions.php file and it will work (tested). wp_deregister_script(‘wp-mediaelement’); wp_deregister_style(‘wp-mediaelement’);
That width is dictated by the $content_width global, defined by the Theme. To change it, you’ll need to hook into after_setup_theme and modify it: function wpse124075_setup_theme() { global $content_width; if ( ! isset( $content_width ) ) { $content_width = 640; // your value here, in pixels } } add_action( ‘after_setup_theme’, ‘wpse124075_setup_theme’ );
You can try the following: /** * Add support for the QuickTime (.mov) video format. */ add_filter( ‘wp_video_extensions’, function( $exts ) { $exts[] = ‘mov’; return $exts; } ); to add the Embed Media Player support for the QuickTime video files. The default supported video formats are: mp4, m4v, webm, ogv, wmv, flv Update: When … Read more
You can try this: add_filter( ’embed_oembed_html’, ‘custom_youtube_oembed’ ); function custom_youtube_oembed( $code ){ if( stripos( $code, ‘youtube.com’ ) !== FALSE && stripos( $code, ‘iframe’ ) !== FALSE ) $code = str_replace( ‘<iframe’, ‘<iframe class=”youtube-player” type=”text/html” ‘, $code ); return $code; } to target the YouTube oembed HTML output. When I embed this YouTube link (Kraftwerk) into … Read more
welcome aboard. WordPress uses Media Elements JS for default video/audio player. You can disable this scripts with this code. Please add this code to your theme’s functions.php function deregister_media_elements(){ wp_deregister_script(‘wp-mediaelement’); wp_deregister_style(‘wp-mediaelement’); } add_action(‘wp_enqueue_scripts’,’deregister_media_elements’); PS. This code de-register mediaelements.js from all WordPress (with your current theme).
I added this to my style.css and now the video player is fully responsive! .wp-video, video.wp-video-shortcode, .mejs-container, .mejs-overlay.load { width: 100% !important; height: 100% !important; } .mejs-container { padding-top: 56.25%; } .wp-video, video.wp-video-shortcode { max-width: 100% !important; } video.wp-video-shortcode { position: relative; } .mejs-mediaelement { position: absolute; top: 0; right: 0; bottom: 0; left: 0; … Read more
I used vlcj and it worked smoothly. It’s java binding to vlcj player and the good thing that you don’t have to provide any drives since vlcj already includes all of them in binary distribution. Give it a go, there is example of already working player built for you!