public static isAudioPodcast ( |
||
episode | ||
Результат | bool |
public void playEpisode(PodcastEpisodeModel episodeModel) { Debug.WriteLine("Starting playback for episode: " + episodeModel.EpisodeName); if (PodcastPlaybackManager.isAudioPodcast(episodeModel)) { try { audioPlayback(episodeModel); } catch (FileNotFoundException e) { Console.WriteLine("Error: File not found. " + e.Message); App.showErrorToast("Cannot find episode."); } } else { videoPlayback(episodeModel); } }
internal void playEpisode(PodcastEpisodeModel episodeModel) { Debug.WriteLine("Starting playback for episode: " + episodeModel.EpisodeName); if (PodcastPlaybackManager.isAudioPodcast(episodeModel)) { try { audioPlayback(episodeModel); setupUIForEpisodePlaying(); } catch (FileNotFoundException e) { Console.WriteLine("Error: File not found. " + e.Message); App.showErrorToast("Cannot find episode."); showNoPlayerLayout(); } } else { PlaybackStopped(); videoPlayback(episodeModel); } }