社区工具
https://learn.microsoft.com/zh-cn/dotnet/communitytoolkit/maui/layouts/statecontainer
开源地址
https://github.com/CommunityToolkit/Maui
https://github.com/CommunityToolkit/Maui.Markup
页面布局
https://blog.csdn.net/hb_ljj/article/details/129116564
MatoMusic
http://tool.liumingye.cn/music/?page=searchPage#/
https://rg1008.com/oss/example/1.mp3
https://github.com/jevonsflash/MatoMusic
https://blog.csdn.net/david_520042/article/details/128156769
https://github.com/jfversluis/Plugin.Maui.Audio
媒体播放
https://learn.microsoft.com/zh-cn/dotnet/communitytoolkit/maui/views/mediaelement
http://vjs.zencdn.net/v/oceans.mp4
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:sys="clr-namespace:System;assembly=netstandard"
xmlns:local="clr-namespace:RG3.MauiAppHostCK.Converters"
x:Class="RG3.MauiAppHostCK.LoginPage" Shell.NavBarIsVisible="False">
<ContentPage.Resources>
<StyleSheet Source="/Resources/Styles/LoginStyle.css" ></StyleSheet>
<local:PercentageToPixelConverter x:Key = "percentageToPixelConverter" ></local:PercentageToPixelConverter>
</ContentPage.Resources>
<toolkit:MediaElement Source="https://rg1008.com/oss/example/1.mp4" ShouldKeepScreenOn="True" ShouldShowPlaybackControls="True" ShouldAutoPlay="True" WidthRequest="500" Speed="1" Volume="1"
HeightRequest="400" ></toolkit:MediaElement>
<!--<toolkit:MediaElement Source="https://rg1008.com/oss/example/2.mp4" ShouldShowPlaybackControls="True" WidthRequest="500"
HeightRequest="400" ></toolkit:MediaElement>-->
<!--WidthRequest="{Binding Source={RelativeSource Self}, Path=Parent.Width, Converter={StaticResource percentageToPixelConverter}, ConverterParameter='0.5'}"
HeightRequest="{Binding Source={RelativeSource Self}, Path=Parent.Height, Converter={StaticResource percentageToPixelConverter}, ConverterParameter='0.5'}"
-->
文档更新时间: 2023-11-19 11:17 作者:admin