Custom embed shows on posts but not on category pages


I added a custom embed handler for brightcove since one doesn’t exist.

It works fine on the post itself and the video loads, but just shows a linked url on category and blog roll pages. I am setting the post type to Video because I’d like that to be the featured image. Here’s what I have:

add_action( 'init', function() { wp_embed_register_handler(     'brightcove',     '#https?://players\.brightcove\.net/([^/]+)/([^/]+)/index.html\?videoId=([\d]+)#',     'wp_embed_handler_brightcove'  ); } );  function wp_embed_handler_brightcove($  matches, $  attr, $  url, $  rawattr) {    $  account  = esc_attr($  matches[ 1 ]); $  player   = esc_attr($  matches[ 2 ]); $  video_id = esc_attr($  matches[ 3 ]);  $  embed = '<div style="position: relative; display: block; max-width: 100%;"><div style="padding-top: 56.25%;"><iframe src="' . sprintf('https://players.brightcove.net/%1$  s/%2$  s/index.html?videoId=%3$  s',           $  account,           $  player,           $  video_id ) . '" allowfullscreen="" allow="encrypted-media" style="position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"></iframe></div></div>';    return apply_filters('embed_brightcove', $  embed, $  matches, $  attr, $  url, $  rawattr); 

}

Any input is appreciated. https://players.brightcove.net/1160438696001/SJaEAUSpl_default/index.html?videoId=4592378961001