This commit is contained in:
Owen Hart 2022-02-04 12:32:34 -08:00
parent 63f12eaed6
commit 5b41407d71
2 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ export default {
WIDEVINE: 'widevine', WIDEVINE: 'widevine',
PLAYREADY: 'playready', PLAYREADY: 'playready',
CLEARKEY: 'clearkey', CLEARKEY: 'clearkey',
FAIRPLAY: 'fairplay' FAIRPLAY: 'fairplay',
}; };

View File

@ -249,7 +249,7 @@ export default class Video extends Component {
NativeModules.VideoManager.setLicenseError && NativeModules.VideoManager.setLicenseError(error, findNodeHandle(this._root)); NativeModules.VideoManager.setLicenseError && NativeModules.VideoManager.setLicenseError(error, findNodeHandle(this._root));
}); });
} else { } else {
NativeModules.VideoManager.setLicenseError && NativeModules.VideoManager.setLicenseError("No spc received", findNodeHandle(this._root)); NativeModules.VideoManager.setLicenseError && NativeModules.VideoManager.setLicenseError('No spc received', findNodeHandle(this._root));
} }
} }
} }
@ -403,7 +403,7 @@ Video.propTypes = {
]), ]),
drm: PropTypes.shape({ drm: PropTypes.shape({
type: PropTypes.oneOf([ type: PropTypes.oneOf([
DRMType.CLEARKEY, DRMType.FAIRPLAY, DRMType.WIDEVINE, DRMType.PLAYREADY DRMType.CLEARKEY, DRMType.FAIRPLAY, DRMType.WIDEVINE, DRMType.PLAYREADY,
]), ]),
licenseServer: PropTypes.string, licenseServer: PropTypes.string,
headers: PropTypes.shape({}), headers: PropTypes.shape({}),