首页 > 解决方案 > Plugin.MediaManager.Forms 在 xamarin uwp 中不起作用

问题描述

参考

Plugin.MediaManager.Forms用于播放音频。它在 android 和 ios 中运行良好。但在 Windows 中,该应用程序与System.NotImplementedException..

在此处输入图像描述

版本详情:

Plugin.MediaManager.Forms:1.0.7

Xamarin 形式:4.8.0.1821

视觉工作室:16.8.3

Windows 目标版本:Windows 10 版本 1903(10.0;内部版本 18362)

Windows 最低版本:Windows 10 秋季创意者更新(10.0;内部版本 16299)

另外,我在功能下的 Package.appxmanifest 中添加了“背景媒体播放”、“互联网”、“音乐库”和“视频库”。

我还缺少什么?

标签: xamarin.formsuwpplugin.mediamanager.forms

解决方案


我已经在 github 上看到了你的问题,现在看到了这个堆栈问题。我在我的Pull Request中解决了这个问题。PR 合并后,您可以更新到最新版本。顺便说一句,你必须使用UWP 10.0.18362.0(Version 1903) min。

目标版本从 uap 10.0.18362.0(版本 1903)降级到 10.0.17763(版本 1809),从版本0.9.7降级到0.9.9。现在,您必须使用v. 0.9.7


推荐阅读