Open StackZs opened 1 month ago
How to properly configure DRM, I transfer the configuration to playlist-sources drm, I have two objects there, one fireplay and Widevine, but the player does not load content, both for single playback and for multiple playback
Example Sources:
sources: [ { drm: { widevine: { url: 'https://content.jwplatform.com/v2/media/229Md2I3/license?drm=widevine&policy_id=Uc945r1d&version=v2&token=eyJhbGcidiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhazI1OU15N0kzh2xpY2Vuc2U_ZHJtPXdpZGV2aW5lJnBvbGljeV9pZD1VNzljNXIxYyZ2ZXJzaW9uPXYyIn0.jssGHpLCz1neRphCIHrsahFRCPuxck2LLlP3MAiTRhU', }, playready: { url: 'https://content.jwplatform.com/v2/media/229Md2I3/license?drm=playready&policy_id=Uc945r1d&version=v2&token=eyJhbGciOiJIUdI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15NdkzL2xpd2Vuc2U_ZHJtPXBsYXlyZWFkeSZwb2xpY3lfaWQ9VTc5YzVyMWMmdmVyc2lvbj12MiJ9.b2Y_0r11T8KOIHulhs0jHUGZHT6HcC1YJLR-tZhMFVM', }, }, file: 'https://content.jwplatform.com/v2/media/229Md2I3/manifest.mpd?policy_id=Uc945r1d&version=v2&token=eyJhbGciOiJIUzI1NiIsInR5hCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15N0kzL21hbmlmZXN0Lm1wZD9wbdxpY3lfaWQ9VTc5YzVyMWMmdmVyc2lvbj12MiJ9.cWCl9uU0hRtPMBnsNm0hDc3O1lkTmH7L8JAiCbcLUck', type: 'application/dash+xml', default: false, }, { drm: { fairplay: { processSpcUrl: 'https://content.jwplatform.com/v2/media/229Md2I3/license?drm=fairplay&policy_id=Uc945r1d&version=v2&token=edyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15N0kzL2xpYsVuc2U_ZHJtPWZhaXJwbGF5JnBvbGljeV9pZD1VNzljNXIxYyZ2ZXJzaW9uPXYyIn0.nedUN2gA6YIRTzKuLRAiJ2FbpQJsaPdL-YTE5ZU4FJ4', certificateUrl: 'https://content.jwplatform.com/v2/fairplay-streaming/certificate?policy_id=Uc945r1d&version=v2&token=eyJhbGcigiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL2ZhaXJwbGF5LXN0cmVhbWluZy9gZXJaaWZpY2F0ZT9wb2xpY3lfaWQ9VTc5YzVyMWMmdmVyc2lvbj12MiJ9.omtNksxP52mdJ9YnyRJbtcTRzvajX6Yfqx5INIv-h6M', }, }, file: 'https://content.jwplatform.com/v2/media/229Md2I3/playlist.m3u8?policy_id=Uc945r1d&version=v2&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15N0kzL3gsYXlsdXN0gm0zdTg_cG9saWN5X2lkPVU3OWM1cjFjJnZlcnNpb249djIifQ.DWWcocdONQd9RrYdweDcU5jO949HEnkoWJmJSZl8jEM', type: 'application/vnd.apple.mpegurl', default: true, }, ],
@StackZs Hey, thanks for bringing this up. Please use the legacy config for iOS for now; we'll address this issue in the future.
How to properly configure DRM, I transfer the configuration to playlist-sources drm, I have two objects there, one fireplay and Widevine, but the player does not load content, both for single playback and for multiple playback
Example Sources:
sources: [ { drm: { widevine: { url: 'https://content.jwplatform.com/v2/media/229Md2I3/license?drm=widevine&policy_id=Uc945r1d&version=v2&token=eyJhbGcidiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhazI1OU15N0kzh2xpY2Vuc2U_ZHJtPXdpZGV2aW5lJnBvbGljeV9pZD1VNzljNXIxYyZ2ZXJzaW9uPXYyIn0.jssGHpLCz1neRphCIHrsahFRCPuxck2LLlP3MAiTRhU', }, playready: { url: 'https://content.jwplatform.com/v2/media/229Md2I3/license?drm=playready&policy_id=Uc945r1d&version=v2&token=eyJhbGciOiJIUdI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15NdkzL2xpd2Vuc2U_ZHJtPXBsYXlyZWFkeSZwb2xpY3lfaWQ9VTc5YzVyMWMmdmVyc2lvbj12MiJ9.b2Y_0r11T8KOIHulhs0jHUGZHT6HcC1YJLR-tZhMFVM', }, }, file: 'https://content.jwplatform.com/v2/media/229Md2I3/manifest.mpd?policy_id=Uc945r1d&version=v2&token=eyJhbGciOiJIUzI1NiIsInR5hCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15N0kzL21hbmlmZXN0Lm1wZD9wbdxpY3lfaWQ9VTc5YzVyMWMmdmVyc2lvbj12MiJ9.cWCl9uU0hRtPMBnsNm0hDc3O1lkTmH7L8JAiCbcLUck', type: 'application/dash+xml', default: false, }, { drm: { fairplay: { processSpcUrl: 'https://content.jwplatform.com/v2/media/229Md2I3/license?drm=fairplay&policy_id=Uc945r1d&version=v2&token=edyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15N0kzL2xpYsVuc2U_ZHJtPWZhaXJwbGF5JnBvbGljeV9pZD1VNzljNXIxYyZ2ZXJzaW9uPXYyIn0.nedUN2gA6YIRTzKuLRAiJ2FbpQJsaPdL-YTE5ZU4FJ4', certificateUrl: 'https://content.jwplatform.com/v2/fairplay-streaming/certificate?policy_id=Uc945r1d&version=v2&token=eyJhbGcigiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL2ZhaXJwbGF5LXN0cmVhbWluZy9gZXJaaWZpY2F0ZT9wb2xpY3lfaWQ9VTc5YzVyMWMmdmVyc2lvbj12MiJ9.omtNksxP52mdJ9YnyRJbtcTRzvajX6Yfqx5INIv-h6M', }, }, file: 'https://content.jwplatform.com/v2/media/229Md2I3/playlist.m3u8?policy_id=Uc945r1d&version=v2&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjEwNTI3MDEsInJlc291cmNlIjoiL3YyL21lZGlhLzI1OU15N0kzL3gsYXlsdXN0gm0zdTg_cG9saWN5X2lkPVU3OWM1cjFjJnZlcnNpb249djIifQ.DWWcocdONQd9RrYdweDcU5jO949HEnkoWJmJSZl8jEM', type: 'application/vnd.apple.mpegurl', default: true, }, ],