react-native-jw-media-player icon indicating copy to clipboard operation
react-native-jw-media-player copied to clipboard

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

Open fernandatoledo opened this issue 11 months ago • 3 comments

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

fernandatoledo avatar Mar 19 '24 19:03 fernandatoledo

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

MitchellVermaning avatar Mar 27 '24 16:03 MitchellVermaning

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 avatar Apr 19 '24 08:04 holladortun

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'

holladortun avatar Apr 19 '24 13:04 holladortun