nativescript-videoplayer icon indicating copy to clipboard operation
nativescript-videoplayer copied to clipboard

Video is black when played from file-system on Android 4.4.2

Open alereisan opened this issue 7 years ago • 7 comments

On a modern Android device (i.e. Android 8) everything works as it should, but as soon as we install the app on our target device (Android 4.4.2 HDMI Stick), the videos are black.

We try to play the video from /sdcard/myFolder/data and/or internal path: src="file:///data/user/0/ch.nativescript.player/files/data/big_buck_bunny_636734799617546545.mp4"

tns --version 4.2.3 "nativescript-videoplayer": "^4.0.4" "tns-core-modules": "4.1.0"

it is a nativescript-angular application

alereisan avatar Sep 25 '18 15:09 alereisan

FYI: nativescript-videoplayer does not work on our hardware. nativescript-exoplayer instead can do 1frame/5sec (!), but at least the video is not completely black. with the "Hardware Acceleration" flag enabled, the exoplayer can even play the vido fluidly for up to 50seconds, then the app crashes with an out of memory error.

the native android videoplayers play the mp4 videos w/o problems.

alereisan avatar Sep 27 '18 14:09 alereisan

that is interesting. This plugin uses the MediaPlayer on android (https://github.com/nstudio/nativescript-videoplayer/blob/master/src/videoplayer.android.ts#L15) - maybe there is something going on with the surface texture here which is actually the main View that gets rendered. I don't have time to dig into that right now but that's my first guess.

bradmartin avatar Sep 27 '18 14:09 bradmartin

@bradmartin was there ever any more movement on this one? I'm running into what appears to be the same issue, though I am using Nativescript-Vue.

Nevermind? I changed seemingly nothing and it started working, which is somewhat concerning...

john-landgrave avatar Apr 23 '19 19:04 john-landgrave

@john-landgrave we could not get this to work stable. We had to upgrade our hardware and also switched to ActionScript :(

alereisan avatar May 03 '19 06:05 alereisan

I actually ended up getting it working, it was ultimately a file path issue (I either had or didn't have an extra / with the file://).

john-landgrave avatar May 05 '19 13:05 john-landgrave

I'm having same issue, tried to use file:// but still the video is not showing

job111 avatar Aug 29 '19 22:08 job111

I have the same issue. is there any solution?

Ghits-nl avatar Dec 17 '19 12:12 Ghits-nl