diff --git a/Video.js b/Video.js index 5851e8cc65..48047a5eb2 100644 --- a/Video.js +++ b/Video.js @@ -234,7 +234,7 @@ export default class Video extends Component { if (this.props.drm && this.props.drm.getLicense instanceof Function) { const data = event.nativeEvent; if (data && data.spc) { - const getLicenseOverride = this.props.drm.getLicense(data.spc, this.props); + const getLicenseOverride = this.props.drm.getLicense(data.spc, this.props, data.contentId); const getLicensePromise = Promise.resolve(getLicenseOverride); // Handles both scenarios, getLicenseOverride being a promise and not. getLicensePromise.then((result => { if (result !== undefined) { diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index cc3e92936c..92e71fc8b1 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -1736,6 +1736,7 @@ - (BOOL)loadingRequestHandling:(AVAssetResourceLoadingRequest *)loadingRequest { NSString *spcStr = [[NSString alloc] initWithData:spcData encoding:NSASCIIStringEncoding]; self->_requestingCertificate = YES; self.onGetLicense(@{@"spc": spcStr, + @"contentId": contentId, @"target": self.reactTag}); } else if(licenseServer != nil) { NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];