public static string GetTranscodedPath(string path) { if (Helper.IsExtenderNativeVideo(path)) { return(path); } else { if (_transcoder == null) { _transcoder = new MediaBrowser.Library.Transcoder(); } string bufferpath = _transcoder.BeginTranscode(path); // if bufferpath comes back null, that means the transcoder i) failed to start or ii) they // don't even have it installed if (string.IsNullOrEmpty(bufferpath)) { Application.DisplayDialog("Could not start transcoding process", "Transcode Error"); throw new Exception("Could not start transcoding process"); } return(bufferpath); } }