private bool CanPlayCodec(string codec)
 {
     if (!string.IsNullOrEmpty(codec))
     {
         var canPlayCodecResponse = MediaPlayer.CanPlayType(codec);
         return(canPlayCodecResponse == MediaCanPlayResponse.Maybe || canPlayCodecResponse == MediaCanPlayResponse.Probably);
     }
     return(false);
 }