As you are using URLs from oEmbed provides (YouTube, Vimeo, Soundcloud, etc), I would use wp_oembed_get()
function. This function uses oEmbed and tries to get the embed HTML of the provided URL.
$embed = wp_oembed_get( $some_url );
if( $embed ) {
echo $embed;
} else {
// The embed HTML couldn't be fetched
}