I have a MPEG-DASH encoder that is fully functional. Now I'm trying to extend it so that streaming content is DRM protected. I have two issues that I'm unable to understand quite easily so I decided to ask you here :)
In full sample encryption (audio track) can I just encrypt each sample in "mdata" box with AES128/CTR/NoPadding and 8byte long IVs which are later stored in "senc" box?
If "senc" box is the container for IVs - do I still need "saiz" and "saio" boxes in "traf" (fragment)?
If I do - offset/size of what should I store there? Of "senc" box or ...?
I have verified that stream is working perfectly without DRM, DRM session is successfully created using "pssh" boxes and ClearKey DRM support in dash.js. Only thing that bothers me for three days is how should a fragment boxes looks like so that browser is capable of decoding it successfully? I'm guessing I did something wrong related to previous three questions.