carsonk.mediahelpers
using MediaHelpers;
and you're good to go!public void PlayVideo(string url) { if(MediaHelper.IsYoutubeUrl(url)) { string streamUrl = MediaHelper.GetUrlFromYoutubeUrl(url); videoPlayer.Play(streamUrl); } else { videoPlayer.Play(url); } }