-
Notifications
You must be signed in to change notification settings - Fork 214
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
Fix a crash for "WebCoreNSURLSessionTaskTransactionMetrics _privacyStance]: unrecognized selector sent to instance" #58
base: master
Are you sure you want to change the base?
Conversation
…tionMetrics at runtime
Hi staskus, can you teach me where and how to add the dummy? I am only a beginner of the coding |
Hey, @alferd4829. Sure.
Don't worry, the workaround I'm proposing here is usually not what is needed when coding apps.
Here are the changes of the pull request: https://github.com/jvanakker/tvOSBrowser/pull/58/files It's enough to add |
This file is However, in this instance you can choose anything, |
|
Thank you. It works now. Do you had any solution to make the video played in full screen mode? |
Unfortunately, no. I haven't really looked into that. |
Understood. Hope you can found out the solution in one day |
Fixes: #54
Due to issues with WebKit and tvOS,
[WebCoreNSURLSessionTaskTransactionMetrics _privacyStance]: unrecognized selector sent to instance
crash anytime the video is played.Solution
Add a dummy
_privacyStance
getter at runtime which returns 0. The system expects a value from nw_connection_privacy_stance_t enum where 0 meansnw_connection_privacy_stance_unknown
.Let me know if you have any questions, thanks!