SamsungDForum / PlayerAVPlayDRM

PlayerAVplayDRM sample application to play Playready, Widevine DRM contents.
Other
37 stars 17 forks source link

how to implement verimatrix drm #3

Open kevinbol opened 5 years ago

kevinbol commented 5 years ago

how to implement verimatrix drm ?

I use these code: var url = 'https://s3-us-west-1.amazonaws.com/integration-support/public_content/content_a/content_a.m3u8'; var host = 'ott-integration-1.verimatrix.com'; webapis.avplay.open(url); var drmParam = new Object(); drmParam.CompanyName = CompanyName; drmParam.IPTV = ''; drmParam.Web = host; //HOST IP webapis.avplay.setDrm('VERIMATRIX', 'Initialize', JSON.stringify(drmParam)); webapis.avplay.prepareAsync(function(){webapis.avplay.play();});

and I got an error, drmEvent = "VERIMATRIX", drmData = Object {code: "4", message: "Createhandle/getrights/drmwebset/parserurl error", name: "DrmError"}

what does this error mean? how to modify my code to support verimatrix drm?