watchOS showing video

This commit is contained in:
2025-10-29 21:44:33 +08:00
parent ad91b17af7
commit fcbd5fe680
5 changed files with 166 additions and 15 deletions

View File

@@ -0,0 +1,12 @@
import SwiftUI
import AVKit
import AVFoundation
struct VideoPlayerView: View {
let videoUrl: URL
var body: some View {
VideoPlayer(player: AVPlayer(url: videoUrl))
.edgesIgnoringSafeArea(.all) // Make it full screen
}
}