C# 通用应用程序和PlayerFramework
我正在创建一个通用应用程序,从手机部分开始 我已成功安装并将其添加为参考 但是,当我将C# 通用应用程序和PlayerFramework,c#,xaml,windows-phone-8.1,C#,Xaml,Windows Phone 8.1,我正在创建一个通用应用程序,从手机部分开始 我已成功安装并将其添加为参考 但是,当我将MediaPlayer元素添加到我的App.xaml时,我得到以下错误: The name "MediaPlayer" does not exist in the namespace "using:Microsoft.PlayerFramework". 我的App.xaml如下所示: <Application x:Class="MusicTracker.App" xmlns="http://schema
MediaPlayer
元素添加到我的App.xaml
时,我得到以下错误:
The name "MediaPlayer" does not exist in the namespace "using:Microsoft.PlayerFramework".
我的App.xaml
如下所示:
<Application
x:Class="MusicTracker.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyNameSpace!"
xmlns:mmppf="using:Microsoft.PlayerFramework">
<Application.Resources>
<Style x:Key="RootFrameStyle" TargetType="Frame">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Frame">
<Grid>
<mmppf:MediaPlayer x:Name="MediaPlayer" AudioCategory="BackgroundCapableMedia" AutoPlay="True" />
<ContentPresenter />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Application.Resources>
您是否尝试重建该项目?如果在普通的XAML页面中使用它,它会工作吗?我用过它,效果很好,我试过重建和清洁什么的,没有改变。尚未在正常页面中尝试,因为我想在多个页面上播放媒体,这就是我使用App.xaml的原因。@将其添加到我的WP8.1项目中的正常页面会出现相同的错误。我看不出我做错了什么。你安装了所需的“附加下载”吗?(smooth streaming SDK、PlayReady客户端SDK…)示例是否正常工作?()@尽管我的项目有完全相同的参考资料,但这些样本仍然有效。今晚我要尝试一个新项目,看看有什么问题。