chaimPaneth / react-native-jw-media-player

React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
MIT License
193 stars 92 forks source link

tvOS Support #268

Open jonathankiefer opened 1 year ago

jonathankiefer commented 1 year ago

When trying to use this library in a tvOS build with the following project init: react-native init MyApp --template=react-native-tvos

I get the following error when the JW Player component is loaded: Invariant Violation: requireNativeComponent: "RNJWPlayerView" was not found in the UIManager.

"JWPlayerKit" and "RNJWPlayer" are present in the Podfile.lock and the project builds fine on iPhone/iPad devices. Any idea what needs to be modified to get this working on Apple TV devices?

Not sure if this matters, but the "react-native-tvos" template creates separate Xcode build schemes for iOS and tvOS.

Edit: Looks like this library will need to implement JWPlayerTVKit to support tvOS.

grigdodon commented 1 year ago

hey @jonathankiefer ! any luck with this?

landonwjohnson commented 1 year ago

does this work?

jonathankiefer commented 1 year ago

hey @jonathankiefer ! any luck with this?

So far, attempts to add JWPlayerTVKit support have been unsuccessful.

mahmudsg commented 1 year ago

same here, any update?

landonwjohnson commented 1 year ago

I actually really need this feature 😅