chore: update basic example
This commit is contained in:
parent
812e9dc84f
commit
04b52023f7
@ -86,25 +86,23 @@ class VideoPlayer extends Component {
|
|||||||
|
|
||||||
popupInfo = () => {
|
popupInfo = () => {
|
||||||
VideoDecoderProperties.getWidevineLevel().then((widevineLevel: number) => {
|
VideoDecoderProperties.getWidevineLevel().then((widevineLevel: number) => {
|
||||||
VideoDecoderProperties.isHEVCSupported().then((hevcSupported: boolean) => {
|
VideoDecoderProperties.isHEVCSupported().then((hevc: string) => {
|
||||||
VideoDecoderProperties.isCodecSupported('video/avc', 1920, 1080).then(
|
VideoDecoderProperties.isCodecSupported('video/avc', 1920, 1080).then(
|
||||||
(avcSupported: boolean) => {
|
(avc: string) => {
|
||||||
this.toast(
|
this.toast(
|
||||||
true,
|
true,
|
||||||
'Widevine level: ' +
|
'Widevine level: ' +
|
||||||
widevineLevel +
|
widevineLevel +
|
||||||
'\n hevc: ' +
|
'\n hevc: ' +
|
||||||
(hevcSupported ? '' : 'NOT') +
|
hevc +
|
||||||
'supported' +
|
|
||||||
'\n avc: ' +
|
'\n avc: ' +
|
||||||
(avcSupported ? '' : 'NOT') +
|
avc,
|
||||||
'supported',
|
);
|
||||||
)
|
|
||||||
},
|
},
|
||||||
)
|
);
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
onLoad = (data: any) => {
|
onLoad = (data: any) => {
|
||||||
this.setState({ duration: data.duration, loading: false, });
|
this.setState({ duration: data.duration, loading: false, });
|
||||||
|
Loading…
Reference in New Issue
Block a user