From 04b52023f78f21cc99993efda90413c2ea17cc19 Mon Sep 17 00:00:00 2001 From: KrzysztofMoch Date: Mon, 25 Sep 2023 08:30:08 +0200 Subject: [PATCH] chore: update basic example --- examples/basic/src/VideoPlayer.android.tsx | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/examples/basic/src/VideoPlayer.android.tsx b/examples/basic/src/VideoPlayer.android.tsx index a3206a84..8b9fb620 100644 --- a/examples/basic/src/VideoPlayer.android.tsx +++ b/examples/basic/src/VideoPlayer.android.tsx @@ -86,25 +86,23 @@ class VideoPlayer extends Component { popupInfo = () => { VideoDecoderProperties.getWidevineLevel().then((widevineLevel: number) => { - VideoDecoderProperties.isHEVCSupported().then((hevcSupported: boolean) => { + VideoDecoderProperties.isHEVCSupported().then((hevc: string) => { VideoDecoderProperties.isCodecSupported('video/avc', 1920, 1080).then( - (avcSupported: boolean) => { + (avc: string) => { this.toast( true, 'Widevine level: ' + widevineLevel + '\n hevc: ' + - (hevcSupported ? '' : 'NOT') + - 'supported' + + hevc + '\n avc: ' + - (avcSupported ? '' : 'NOT') + - 'supported', - ) + avc, + ); }, - ) - }) - }) - } + ); + }); + }); + }; onLoad = (data: any) => { this.setState({ duration: data.duration, loading: false, });