Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
});

const { VideoDecoderProperties } = NativeModules

Check warning on line 17 in Video.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon

Check warning on line 17 in Video.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon
export { TextTrackType, FilterType, DRMType, VideoDecoderProperties }

Check warning on line 18 in Video.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon

Check warning on line 18 in Video.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon

export default class Video extends Component {

Expand Down Expand Up @@ -266,8 +266,8 @@
const getLicenseOverride = this.props.drm.getLicense(data.spcBase64, data.contentId, data.licenseUrl);
const getLicensePromise = Promise.resolve(getLicenseOverride); // Handles both scenarios, getLicenseOverride being a promise and not.
getLicensePromise.then((result => {
if(!this._root){

Check warning on line 269 in Video.js

View workflow job for this annotation

GitHub Actions / build

Expected space(s) after "if"

Check warning on line 269 in Video.js

View workflow job for this annotation

GitHub Actions / build

Expected space(s) after "if"
return

Check warning on line 270 in Video.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon

Check warning on line 270 in Video.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon
}
if (result !== undefined) {
NativeModules.VideoManager.setLicenseResult(result, findNodeHandle(this._root));
Expand Down Expand Up @@ -296,16 +296,6 @@
return UIManager.getViewManagerConfig(viewManagerName);
};

componentWillUnmount() {
/**
* @TODO reset handler is added as a patch fix for handling airplay playback to release the stream , Upgrading to v6.0.0 will fix this issue permantely and don't need the reset handler.
*/
if (Platform.OS === 'ios') {
this.setNativeProps({
allowsExternalPlayback: false,
});
}
}
render() {
const resizeMode = this.props.resizeMode;
const source = resolveAssetSource(this.props.source) || {};
Expand Down
Loading