本文比较糙,如作参考,切勿钻牛角尖音响效率
simpleM's GitHub
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <Grid Grid.Row="1" > <Grid> <MediaPlayerElement Grid.Row="1" Grid.Column="0" Name="mediaPlayer" AutoPlay="True" Visibility="Visible" AreTransportControlsEnabled="True"> <MediaPlayerElement.TransportControls> <local:SuperSimpleMediaTransportControls IsCompact="True" IsZoomButtonVisible="True" IsZoomEnabled="True" IsPlaybackRateButtonVisible="True" IsPlaybackRateEnabled="True" AddPlaybackRated="SuperSimpleMediaTransportControls_AddPlaybackRated" InitPlaybackRated="SuperSimpleMediaTransportControls_InitPlaybackRated" ReducePlaybackRated="SuperSimpleMediaTransportControls_ReducePlaybackRated" > </local:SuperSimpleMediaTransportControls> </MediaPlayerElement.TransportControls>
</MediaPlayerElement> </Grid> </Grid>
|
1 2 3 4 5 6
| private void SuperSimpleMediaTransportControls_ReducePlaybackRated(object sender, EventArgs e) { mediaPlayer.MediaPlayer.PlaybackSession.PlaybackRate -= 0.1; UpShowText("当前播放速度为:" + mediaPlayer.MediaPlayer.PlaybackSession.PlaybackRate);
}
|
在 UWP 应用中使用 SQLite 数据库
官方数据库示例貌似有缺陷,在我的版本不能正常运行,最下方也有人提出相同问题,并且官方数据库的使用范例为先写一个lib,然后引入lib,目前所写的播放器并用不到这种分离,就在simpleM项目中直接进行sqlite的引用