私のオーディオがバックグラウンドでプレーしないのはなぜですか?
-
20-12-2019 - |
質問
このページを使用して、オーディオの再生をページに渡しています。
<Page
x:Class="MyApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mmppf="using:Microsoft.PlayerFramework"
mc:Ignorable="d"
>
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<mmppf:MediaPlayer x:Name="player" AutoPlay="True" AudioCategory="BackgroundCapableMedia" />
<Frame x:Name="rootFrame"/>
</Grid>
</Page>
.
これは私のアプリマニフェストの外観です。
しかし私の背景私のアプリで、オーディオは演奏を停止します。 私が見ることができるものから、すべて 私のアプリに存在しています
解決
参照しているページは、Windows Phone 8.1ではなくWindows Storeアプリにのみ適用されます。
Windows Phone 8.1の場合、ここで説明したように、背景タスクを実装する必要があるので、物事はより複雑に見えます。
所属していません StackOverflow