• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

media

OBS Source Is A Red Dot

June 30, 2019

If you’re adding a media source (RTMP, RTSP or HLS) in OBS and all you’re getting is a red dot, here’s a quick fix.

For Windows, hit Control-F.
For Mac OS, hit Command-F.

For Windows, hit Control-F. For Mac OS, hit Command-F.

Filed Under: Misc Tagged With: media, obs, red dot, source

Override WordPress Video Dimensions

December 23, 2016

WordPress comes with its own media player. It supports M4a, MP4, OGG, WebM, FLV, WMV, MP3, WAV and WMA formats. In addition, you can also embed videos from a dozen external sites such as YouTube, Vimeo, etc. WordPress will automatically embed the video when you add it to your post. You can change the dimensions of your videos by overriding the width and the height of the media player.

Edit the functions.php file, and add the following code.

function override_video_dimensions( $out, $pairs, $atts ) {
  $out['width'] = '640';
  $out['height'] = '360';
  return $out;
}
add_filter( 'shortcode_atts_video', 'override_video_dimensions', 10, 3 );

function override_video_dimensions( $out, $pairs, $atts ) { $out['width'] = '640'; $out['height'] = '360'; return $out; } add_filter( 'shortcode_atts_video', 'override_video_dimensions', 10, 3 );

Here’s how to add YouTube videos in WordPress.

Filed Under: WP Tagged With: media, player, videos, youtube

  • Home
  • About
  • Archives

Copyright © 2023