JWPlayer + ReactNative + Android: black screen with sound

I am trying to create an action-native plugin for JWPlayer and right now (in the part of android). I see the video on the screen (in the location determined by the reactive view) and even its buttons, but when I play the video that I see on the black screen when the music is playing in the background. The curious thing is that when I put the JWPlayerView in the WindowManager, the video displays correctly in full screen in the center.

What am I doing wrong?

this is the reaction code:

<View>
    <JWPlayer 
        style={{width: 320, height: 240}}
        src='http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4' />
</View>
+4
source share

Source: https://habr.com/ru/post/1684598/


All Articles