Ionic-native/video-player

While building the app I am getting this error:

platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:123: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
^
symbol: variable R
location: class VERSION_CODES
/Users/macmini/Documents/ionic5Projects/gujarat-tourism-ionic-5/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
^
symbol: variable Type
location: class WindowInsets
/Users/macmini/Documents/ionic5Projects/gujarat-tourism-ionic-5/platforms/android/app/src/main/java/com/moust/cordova/videoplayer/VideoPlayer.java:124: error: cannot find symbol
dialog.getWindow().getInsetsController().hide(WindowInsets.Type.statusBars());
^
symbol: method getInsetsController()
location: class Window
3 errors

How to Solve it?

Hi, I’m having the same issue. Have you solved it?

please use html5 video-tag

Can you make a video player app like the MX Player…?

facing the same issue here… googled it and the answer is upgrading compileSDKVersion to 30 (if yours not already on this version). but mine is already on version 30. is anyone having the same issue?