chaimPaneth / react-native-jw-media-player

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

Type 'RNJWPlayerView' does not conform to protocol 'JWCastDelegate' #349

Open fernandatoledo opened 3 months ago

fernandatoledo commented 3 months ago

Hello I was having this issue after installing the library on my project, then decided to run the Example project provided on this Repo and I am having the same problem. Has anyone found a solution?

Screenshot 2024-03-19 at 16 38 11

Thank you

MitchellVermaning commented 3 months ago

I have the same issue here.

Findings:

  1. Variable USE_GOOGLE_CAST was not set. After setting this, above error disappeared.
  2. I have replaced the functions override func onAdTimeEvent(_ time:JWTimeData) and override func onMediaTimeEvent(_ time:JWTimeData) with their original values: func onAdTimeEvent(time:JWTimeData) and func onMediaTimeEvent(time:JWTimeData). I received: Method does not override any method from its superclass. - (https://github.com/chaimPaneth/react-native-jw-media-player/pull/346).

Additionally, the project had to be built/compiled in Rosetta when using the simulator?

I'm not sure if these are the correct steps, but they did get it working for me. I would appreciate hearing how to do it the right way.

Thank you in advance.


My macOS version is: 14.2. xCode version: 15.0.1.

Scherm­afbeelding 2024-03-27 om 17 29 50
holladortun commented 2 months ago

any solution to this? I am using react native with expo work flow and this is causing error with EAS build. Expo SDK 50

holladortun commented 2 months ago

I have the same issue here.

Findings:

1. Variable `USE_GOOGLE_CAST` was not set. After setting this, above error disappeared.

2. I have replaced the functions `override func onAdTimeEvent(_ time:JWTimeData)` and `override func onMediaTimeEvent(_ time:JWTimeData)` with their original values: `func onAdTimeEvent(time:JWTimeData)` and `func onMediaTimeEvent(time:JWTimeData)`.
   I received: `Method does not override any method from its superclass`. - ([updated onAdTimeEvent, onMediaTimeEvent #346](https://github.com/chaimPaneth/react-native-jw-media-player/pull/346)).

Additionally, the project had to be built/compiled in Rosetta when using the simulator?

I'm not sure if these are the correct steps, but they did get it working for me. I would appreciate hearing how to do it the right way.

Thank you in advance.

My macOS version is: 14.2. xCode version: 15.0.1.

Scherm­afbeelding 2024-03-27 om 17 29 50

Hello, how were you able to solve the error Type 'RNJWPlayerView' does not conform to protocol 'JWCastDelegate'