Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fernandatoledo opened this issue Mar 19, 2024 · 3 comments
Open

Comments

@fernandatoledo
Copy link

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
Copy link

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).

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
Copy link

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
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants