Encrypted playback in web view on IOS

Is there a way to use a WKwebview to play back encrypted video.

We want to use a hosted player and so far the best I can achieve is using a SafariViewController which gives us

very limited options in terms of presentation.


We would like to be able to have the webview on a page with other components.

Is there anyway to use custom protocol or some similar tech that would allow using AVAssetResourceLoaderDelegate

to provide the content Key for the Fairplay cert.


We use Azure player is their any way to utilize that.

I am not sure if it works in a WKWebView, but you can use the Safari approach in recent iOS, to playback FairPlay content.


This means you wouldn't use any of the AVAssetResourceLoaderDelegate approach, but instead would do the implementation entirely in Javascript, similar to if you were trying to get Safari playback to work on desktop.

You can use AVPlayer to play stream over the WKWebview by using customer protocol. It's doable but you need some bridge between them and the video will be played over the page so you can't embed the video into some div insdie the page

Encrypted playback in web view on IOS
 
 
Q