This commit is contained in:
Trey t
2025-03-13 22:12:50 -05:00
parent fb22f47a82
commit ca25d61019
15 changed files with 218 additions and 90 deletions

View File

@@ -28,6 +28,7 @@ struct ContentView: View {
} else {
PlayerView(player: $avPlayer)
.onAppear{
avPlayer.isMuted = true
avPlayer.play()
}
.onReceive(videoEnded){ _ in
@@ -49,6 +50,7 @@ struct ContentView: View {
func playVideo(url: String) {
let url = URL(string: BaseURLs.currentBaseURL + url)
avPlayer = AVPlayer(url: url!)
avPlayer.isMuted = true
avPlayer.play()
}