Skip to content

Commit

Permalink
fix(ios): fix drm license url used to provide the answer
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed Mar 11, 2024
1 parent 5df26f3 commit 3ce3607
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,14 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
nativeRef.current &&
VideoManager.setLicenseResult(
result,
data.licenseUrl,
data.loadedLicenseUrl,
getReactTag(nativeRef),
);
} else {
nativeRef.current &&
VideoManager.setLicenseResultError(
'Empty license result',
data.licenseUrl,
data.loadedLicenseUrl,
getReactTag(nativeRef),
);
}
Expand All @@ -463,14 +463,14 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
nativeRef.current &&
VideoManager.setLicenseResultError(
'fetch error',
data.licenseUrl,
data.loadedLicenseUrl,
getReactTag(nativeRef),
);
});
} else {
VideoManager.setLicenseResultError(
'No spc received',
data.licenseUrl,
data.loadedLicenseUrl,
getReactTag(nativeRef),
);
}
Expand Down

0 comments on commit 3ce3607

Please sign in to comment.