コード例 #1
0
        public void PlayFile(PodcastPlayItem playItem)
        {
            PlayList[index].IsPlaying = false;
            index = PlayList.IndexOf(playItem);
            PlayList[index].IsPlaying = true;

            App.MediaPlayer.InitPlay(playItem, PodcastDetailItem.artworkUrl100);
        }
コード例 #2
0
 public void InitPlay(PodcastPlayItem playItem, string coverImage)
 {
     IsPlaying = true;
     DependencyService.Get <IAudioStreamingService>().InitAndPlay(playItem.AudioPath, playItem.Title);
     ShowPlayer = true;
     AudioTitle = playItem.Title;
     AudioImage = coverImage;
 }