struct ContentView: View {
   @State private var appData = ApplicationData.shared

   var body: some View {
      if appData.player != nil {
         VideoPlayer(player: appData.player)
            .onAppear {
               appData.player.play()
            }
            .ignoresSafeArea()
      } else {
         Text("Video not available")
      }
   }
}