Change the default video shortcode
Here’s an untested way to override the output of the shortcode, with the output of your custom rtmp_video() function, when the mp4 video is hosted on amazonaws.com: /** * Override the video shortcode output for mp4 hosted on ‘amazonaws.com’ * with the rtmp_video output. * * @uses rtmp_video() */ add_filter( ‘wp_video_shortcode_override’, function( $output, $attr, $content, … Read more