-
Notifications
You must be signed in to change notification settings - Fork 25
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
Pass spcBase64 to getLicense #9
base: feature/ios-drm-support
Are you sure you want to change the base?
Pass spcBase64 to getLicense #9
Conversation
@@ -1735,7 +1735,8 @@ - (BOOL)loadingRequestHandling:(AVAssetResourceLoadingRequest *)loadingRequest { | |||
if(self.onGetLicense) { | |||
NSString *spcStr = [[NSString alloc] initWithData:spcData encoding:NSASCIIStringEncoding]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe related:
but spcStr
is not empty in xcode debugger.
Sorry I didn't saw your PRs and pushed the changes already thinking it was a request, can you try last version of the branch? |
Sure. Let me update the demo app. |
@yurtaev what is the resolution? |
My getlicense function is:
and on RCTVideo.m
|
@yurtaev Any help is appreciated? |
@sanjeevghimire check diff |
Add support for L1 to L3 Widevine fallback if playback fails initially.
I don't know why but
spcString
is empty (on js side) if app running not in debug mode.I think different behavior (unicode strings?) between JavaScriptCore & V8/Chrome (debug mode) is causing this.
Any ideas?
Demo: https://github.com/yurtaev/react-native-video/blob/example%2FDRM/storybook/stories/DRMExample/index.ios.js#L20