Videos via the video shortcode are always 640px wide?

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’ );

How add class youtube and type/html to oembed code?

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

How do i disable or Remove the Native WordPress Video Player?

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).

How to make native video player full width?

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

Creating video player using Java

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!