chaimPaneth / react-native-jw-media-player

React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
MIT License
197 stars 92 forks source link

jw player playlist props image item not working (thumbnail) #336

Open PratikKatkar opened 10 months ago

PratikKatkar commented 10 months ago
 license: Platform.select({
              ios: 'xxxxxxxxxxxxx',
              android:
                'xxxxxxxxxx',
            }),
            setPlaylistIndex: {index: index},
            backgroundAudioEnabled: false,
            autostart: true,
            playlist: [
              {
                file: post_video,
                image: thumbnail_photo,
              },
            ],

            repeat: true,
            controls: false,
          }}    

           I have provided this code, in this code playlist image item is not being displayed. i want to display the thumbnail for the next playing video i attaching video please refer that 

https://github.com/chaimPaneth/react-native-jw-media-player/assets/95684097/60b41f02-443f-4d88-8adf-ffa9cdf03732

chaimPaneth commented 9 months ago

Hi @PratikKatkar

I've found that some version of the JW SDK have issues with loading the image in android. Try downgrading the JW SDK version (you can set the jwPlayerVersion in android/build.gradle ext {}) to 4.12.0 or other versions and check which one works for you as I don't remember now exactly what version worked for us.