wip
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user