添加 AVPlayer

This commit is contained in:
2024-04-23 14:19:06 +08:00
parent 09b129fe5a
commit aea18f9da9
3 changed files with 83 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ struct Index {
rightMenuType: TitleBarMenuType.None
}).width('100%')
Column() {
Column({space: 8}) {
Row() {
Button("WebDialog").width(100).height('100%').type(ButtonType.Normal)
.onClick(async () => {
@@ -113,9 +113,15 @@ struct Index {
Button("Animation").width(100).height('100%').type(ButtonType.Normal).onClick(() => {
router.pushUrl({ url: "pages/animation/CompTransitionPage" });
});
}.width('100%').height(48).justifyContent(FlexAlign.SpaceEvenly)
Row() {
Button("AVPlayer").width(100).height('100%').type(ButtonType.Normal).onClick(() => {
router.pushUrl({ url: "pages/media/AVPlayerPage" });
});
}.width('100%').height(48).justifyContent(FlexAlign.SpaceEvenly)
}.justifyContent(FlexAlign.Center).width('100%')
}.width('100%')
}.width('100%').height('100%')
}
}