Windows runtime 更换Windows Phone 8.1通用应用程序中的MediaPlayerLauncher

Windows runtime 更换Windows Phone 8.1通用应用程序中的MediaPlayerLauncher,windows-runtime,windows-phone,windows-phone-8.1,win-universal-app,Windows Runtime,Windows Phone,Windows Phone 8.1,Win Universal App,Windows Phone 8.1通用应用程序中的替换是什么 启动URI将打开浏览器: var options = new LauncherOptions(); options.ContentType = "video/mp4"; await Launcher.LaunchUriAsync(uri.Uri, options); 或在设置ContentType时崩溃(如上所示) 解决方案是什么(除了使用播放器实现自己的页面)?WP 8.1 RT中没有MediaPlayerLauncher的替代

Windows Phone 8.1通用应用程序中的替换是什么

启动URI将打开浏览器:

var options = new LauncherOptions();
options.ContentType = "video/mp4";
await Launcher.LaunchUriAsync(uri.Uri, options); 
或在设置ContentType时崩溃(如上所示)


解决方案是什么(除了使用播放器实现自己的页面)?

WP 8.1 RT中没有MediaPlayerLauncher的替代品


唯一的解决方案是使用MediaElement在应用程序中播放视频。

如果
uri.uri
位置位于
LocalStorage
上,您可能希望尝试
LaunchFileAsync
而不是
LaunchUriAsync
,这将允许您使用外部播放器启动视频。不过我还没有测试过,这只是一个随机猜测,因为没有人回复这是一个HTTP uri,所以我认为这不会起作用……我还没有在字符串选项上实现异常。ContentType=“video/mp4”;适用于Windows Phone设备。我想这是虫子