Tag Archives: video

WordPress: Responsive video (mp4 video inserted from media library)

Changed the wordpress wp-includes/media.php file. Probably not the best way to do this. Ref: https://codex.wordpress.org/Video_Shortcode At around line 2504, comment out the following: $html_atts = array( ‘class’ => $atts[‘class’], ‘id’ => sprintf( ‘video-%d-%d’, $post_id, $instance ), ‘width’ => $atts[‘width’], //’width’ … Continue reading

Posted in CMS | Tagged , | Comments Off on WordPress: Responsive video (mp4 video inserted from media library)

Embed a video with both autoplay, mute and other variables

Source: http://stackoverflow.com/questions/19241151/adding-additional-parameters-to-the-yt-player-object-from-youtube https://developers.google.com/youtube/player_parameters?playerVersion=HTML5 https://productforums.google.com/forum/#!msg/youtube/XS5_P_9OXCo/-oNOf3d8x4sJ http://jsfiddle.net/oLtcsh49/2/ <!– 1. The <iframe> (and video player) will replace this <div> tag. –> <div id=”player”></div> <script> // 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement(‘script’); tag.src = “https://www.youtube.com/iframe_api“; var … Continue reading

Posted in Youtube | Tagged , , | Comments Off on Embed a video with both autoplay, mute and other variables