【发布时间】:2015-02-24 05:53:21
【问题描述】:
我使用 Windows Phone 8.1 运行时 我把我的歌放在隔离存储中
我的代码: storageFile 是独立存储中的歌曲
IRandomAccessStream stream = await storagefile.OpenAsync(FileAccessMode.Read);
BackgroundMediaPlayer.Current.SetStreamSource(stream);
BackgroundMediaPlayer.Current.Play();
当我玩它时,它不起作用,就像照片一样(尝试模拟器和设备 lumina 520)
http://photoshare7.com/image/f5a
_消息: 无法将类型为“Windows.Media.Playback.MediaPlayer”的对象转换为类型“Windows.Media.Playback.IMediaPlayerSource”
请帮助我。Tks all.Sr 我的英语。
【问题讨论】:
标签: windows-runtime windows-phone windows-phone-8.1