flowplayer / flowplayer-mpegdash

MIT License
8 stars 13 forks source link

Support encrypted streams #3

Closed phloxic closed 7 years ago

phloxic commented 9 years ago

Problem will be to find/create a sample.

RopoMen commented 7 years ago

http://dashif.org/reference/players/javascript/v2.1.1/samples/dash-if-reference-player/app/sources.json

From https://github.com/Dash-Industry-Forum/dash.js/issues/483

If you search "encryp".. you can find some encrypted MPD's

phloxic commented 7 years ago

@RopoMen - sure, sure. But did you get one to work at http://dashif.org/reference/players/javascript/v2.4.1/samples/dash-if-reference-player/ (that's what the code is for)? I didn't find one so far, probably one needs additional access data - or the streams are simply currently not available (happens quite a lot) or ...

RopoMen commented 7 years ago

Yeah :) Did only quickly look in to that and remembered this ticket. Seems to require also the license url, ofc.

I'm not sure if this could help https://docs.microsoft.com/en-us/azure/media-services/media-services-protect-with-drm

I have used (5 years a go) this http://wmtap.smdisp.net/janus/summary.asp?#9_Series_Test_Cases and from that remembered that Microsoft offers pretty good test contents and I think they may have even better test content for MPEG-DASH with DRM.

RopoMen commented 7 years ago

Actually here: http://playready.azurewebsites.net/Home/AdaptiveTests

Tears Of Steel Teaser 4K CENC (H264 AAC, CENC)

(c) Copyright Blender Foundation | mango.blender.org
Content Key Id  {6f651ae1-dbe4-4434-bcb4-690d1564c41c}
MPEG-DASH manifest  http://profficialsite.origin.mediaservices.windows.net/c51358ea-9a5e-4322-8951-897d640fdfd7/tearsofsteel_4k.ism/manifest(format=mpd-time-csf)
phloxic commented 7 years ago

But the sample player wants a license URL for playready (click on "Show Options"). As long as I don't see a stream working in the sample player, there's not much sense in attacking this, from my pov.

RopoMen commented 7 years ago

I noticed that, all non-encrypted streams worked ok.

This place contains also test drm server + test player. http://playready.azurewebsites.net/Home/TestPlayer

phloxic commented 7 years ago

@RopoMen - this is now implemented: http://demos.flowplayer.org/api/dash.html#drm

Setting of robustnessLevel must still be investigated, seems to depend on browser capabilities.

Docs for the 2 new protection and protectionLevel clip dash options to follow.

phloxic commented 7 years ago

And I haven't found a stream which works in IE in the dash.js sample player, therefore so far it doesn't work in IE either.

phloxic commented 7 years ago

Also does not work in desktop Safari (as in dash.if reference player) - this is bordering on an academic exercise ...

phloxic commented 7 years ago

Implemented.