AVPlayer not Playing on tvOS 17.2

Loading a video that played on tvOS 17, won't now play in tvOS 17.2. It isn't true for all videos or even all videos of a certain type.

This code works fine on tvOS 17, but not on 17.2

import SwiftUI
import AVKit
struct ContentView: View {
    var body: some View {
        let player = AVPlayer(url: URL(string: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4")!)
        VideoPlayer(player: player)
            .onAppear {
                player.play()
            }
    }
}

I have tried reloading the metadata. I tried making the player from an AVAsset rather than a URL. I can't seem to see what is making it work with some videos and not all and what is different from tvOS 17 to 17.2.

I have the same issue with most of the videos! The app is working with rvOS 17 but not 17.2! I've already tried many things, and none of them work!

Any help is much appreciated!

Thanks

Hi, I am also having this same problem. All my TVOS apps that play any video content have now stopped working. When the video appears it will just load forever and never play even with remote input. For context, these apps were working perfectly about 6 months ago (July 2023). I am also getting the same issue in both the simulator and when uploading to a device. When uploaded to my AppleTV, when you press on a video, the whole app just crashes, sometimes with an error about forced unwrapping.

I have no clue what the issue is so any help would be greatly appreciated. Thanks

My issue resolved by using some https urls

Seeing the same issue with tvOS 17.2 and tvOS 17.3 when loading the video locally.

let player = AVPlayer(url: Bundle.main.url(forResource: "video", withExtension: "mp4")!)

Thanks!

Changing the tvOS Simulator to v17.0 worked for me.

AVPlayer not Playing on tvOS 17.2
 
 
Q