HLS CMAF playlist with multiple DRM changes

Hi

Is it possible to have a playlist where I have a indication of a stream in clear, but then, someone started a DRM encrypted period and then someone turns it off.

Can I just do the following (I've removed the video segments part, I'm just interested in the parts where I want notify the new drm region )?

#EXT-X-MAP:URI="video_2_10000000_t17586401730000000_init.mp4" #EXT-X-KEY:METHOD=NONE ... #EXT-X-MAP:URI="video_2_10000000_t17587374640000000_init.mp4" #EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://5df0b36ac4bb4d0ff954a73b502ac332",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1" ... #EXT-X-MAP:URI="video_2_10000000_t17587376740000000_init.mp4?" #EXT-X-KEY:METHOD=NONE

Should I insert discontinuity tags or something else? Right now what I can observe is that I got some audio drops when I try to do this.

HLS CMAF playlist with multiple DRM changes
 
 
Q