chaimPaneth / react-native-jw-media-player

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

iOS JWP Studio DRM fix #321

Closed jhpark723 closed 8 months ago

jhpark723 commented 9 months ago

Updated the implementation of DRM delegate methods for JWP Studio DRM which will be used by most of JW Player customers. Android already works with the JWP Studio DRM.

mythrandeer commented 8 months ago

@chaimPaneth Thank you for maintaining this package. It has been remarkably useful for us.

We are serving certain content from the JW Player platform which utilizes their Studio DRM for content protection. This PR from the JW support team (Thank you @jhpark723!) adds the capabilities for enabling playback of this content on iOS. We would really appreciate it if this could be merged and published.

mythrandeer commented 8 months ago

Thank you for merging this in @chaimPaneth. Would it be possible to release a new version with these updates to NPM please? Thank you!

grigdodon commented 1 week ago

hey @mythrandeer @jhpark723 !

how are you using DRM when you have multiple items in playlist? each item has its own drm licence url, so it should be updated every time an item is loaded. at the moment, the drm params are being passed in the config, outside the playlist, so updating the playlist, as is suggested in JWPlayer doc (https://docs.jwplayer.com/players/reference/setplaylistitemcallbackcallback) will not work.

Have you guys had to deal with this? Did you come up with any solutions? Thank you very much!