i have an html page that plays a MPEG-DASH segmentated mp4 file. I've generated "segmentated chunk" using MP4Box tool to a .mp4 file.
My html source is the following:
<!doctype html>
<html>
<head>
<title>Dash.js Rocks</title>
<style>
video {
width: 640px;
height: 360px;
}
</style>
</head>
<body>
<div>
<video id="videoPlayer" controls></video>
</div>
<script src="http://cdn.dashjs.org/latest/dash.all.min.js"></script>
<script>
(function(){
var url = "http://localhost:8080/pubblicita_audio_video/video.mpd";
var player = dashjs.MediaPlayer().create();
player.initialize(document.querySelector("#videoPlayer"), url, true);
})();
</script>
</body>
Well, this works fine. Now, i would get EME feature to this code. How could i
1) generate an entrypted file from .mp4?
2) decrypt that file and playout itself from dash.js (as the my html page)?
Sorry for my english!
Thanks