You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am trying to run the project on tvOS, I am getting a build failed error. The error 'updatesNowPlayingInfoCenter' is unavailable in tvOS is occurring because the react-native-video library is attempting to set the updatesNowPlayingInfoCenter property on the RCTVideoPlayerViewController class, which is not available or supported on the tvOS platform. It was working well when using react native video 5.2.1
Initialize a new React Native project for tvOS with TypeScript using the official tvOS template:
yarn create react-native-app TestApp --template https://github.com/react-native-tvos/react-native-template-typescript-tv/tree/tv-release-0.73.0 --template-path template
cd TestApp
Install react-native-video by running yarn add react-native-video.
Navigate to the ios folder and run pod install to install the required iOS dependencies.
In Xcode, open the project's tvOS target and go to the "General" tab. Under the "Linked Frameworks and Libraries" section, add libreact-native-video.a.
Build the app for tvOS using the Expo CLI command:
After following these steps, you should encounter the same error: 'updatesNowPlayingInfoCenter' is unavailable in tvOS when attempting to build the app for the tvOS platform using the Expo CLI command.
The text was updated successfully, but these errors were encountered:
HI @freeboub ,
Thanks for Replying and for the patch
In RCTVideo.swift file I commented Out this line
" viewController.updatesNowPlayingInfoCenter = false""
And rebuild the project now it's works. I don't know whether it's the right solution. For now it works without any issued
Version
6.0.0
What platforms are you having the problem on?
Apple tvOS
Architecture
New architecture with interop layer
What happened?
When I am trying to run the project on tvOS, I am getting a build failed error. The error 'updatesNowPlayingInfoCenter' is unavailable in tvOS is occurring because the react-native-video library is attempting to set the updatesNowPlayingInfoCenter property on the RCTVideoPlayerViewController class, which is not available or supported on the tvOS platform. It was working well when using react native video 5.2.1
MY Package JSON
Xcode Version 15.3
Reproduction
repository link
Reproduction
Install
react-native-video
by runningyarn add react-native-video
.Navigate to the
ios
folder and runpod install
to install the required iOS dependencies.In Xcode, open the project's tvOS target and go to the "General" tab. Under the "Linked Frameworks and Libraries" section, add
libreact-native-video.a
.Build the app for tvOS using the Expo CLI command:
After following these steps, you should encounter the same error:
'updatesNowPlayingInfoCenter' is unavailable in tvOS
when attempting to build the app for the tvOS platform using the Expo CLI command.The text was updated successfully, but these errors were encountered: