react-native-jw-media-player icon indicating copy to clipboard operation
react-native-jw-media-player copied to clipboard

Tracks property in media playlist item causes crash on Android

Open ggustilo opened this issue 1 year ago • 4 comments

I can add the tracks in iOS and its not a problem. On Android, they cause the player to crash with: Error while updating property 'config' of a view managed by: RNJWPlayerView

This is on Android Google Pixel 3.

Removing the tracks property or passing an empty array will stop it from crashing.

<JWPlayer key={"JWPlayer-2"} ref={} style={{ flex: 1 }} config={{ license: Platform.select({ ios: process.env.JWPLAYER_IOS_SDK_KEY, android: process.env.JWPLAYER_ANDROID_SDK_KEY, }), autostart: false, styling: {}, playlist: [ { mediaId: mediaId, file: videoFile, image: image, tracks: [ { file: "https://content.jwplatform.com/tracks/KjvZeV9E.srt", label: "On", }, ], } ], enableLockScreenControls: false, pipEnabled: false, }} onPlayerError={(e) => logError(e)} />

ggustilo avatar Mar 30 '23 19:03 ggustilo

I have the same problem, I had read online that the Android SDK for JWPlayer supports only VTT subtitles, but after testing VTT subtitles as well, I still get the same error: Error while updating property 'config' of a view managed by: RNJWPlayerView

StavrosNicolaou avatar Sep 19 '23 16:09 StavrosNicolaou

Hi @ggustilo and @StavrosHacker, Were you able to fix this, we are also getting "Error while updating property 'config' of a view managed by: RNJWPlayerView" when adding Audio tracks ?

mahmudsg avatar Nov 06 '23 02:11 mahmudsg

Working, my only issue was, I didn't add kind: 'captions'. { file: item.url, label: item.language, kind: 'captions', default: true, }

mahmudsg avatar Nov 06 '23 04:11 mahmudsg

Hi @mahmudsg,

Is this resolved?

chaimPaneth avatar Feb 08 '24 07:02 chaimPaneth