HLS playlist mixes encryption methods
More than one encryption method appears in a single playlist, which many players do not handle.
What it means
Segments in this playlist are encrypted with different EXT-X-KEY methods — AES-128 and SAMPLE-AES, for example — rather than one consistent scheme.
Why it matters
Players typically set up decryption once for a playlist. Changing method mid-stream requires re-initialising the decryptor, which many implementations do not do, so playback fails at the point of change rather than at the start — after the viewer has already committed.
How to fix it
- Use one encryption method throughout a playlist. Rotating keys within one method is fine and encouraged.
- If you must change method, do it at a discontinuity, and test on the specific devices you care about.
Check your own stream
The free HLS analyzer runs this check on every analysis and links each finding straight back here.
Open the HLS analyzer →Frequently asked questions
- What does "HLS playlist mixes encryption methods" mean?
- Segments in this playlist are encrypted with different EXT-X-KEY methods — AES-128 and SAMPLE-AES, for example — rather than one consistent scheme.
- Why does it matter?
- Players typically set up decryption once for a playlist. Changing method mid-stream requires re-initialising the decryptor, which many implementations do not do, so playback fails at the point of change rather than at the start — after the viewer has already committed.
- How do I fix it?
- 1. Use one encryption method throughout a playlist. Rotating keys within one method is fine and encouraged. 2. If you must change method, do it at a discontinuity, and test on the specific devices you care about.
- How can I detect this automatically?
- Paste your HLS streaming URL into StreamTest's free HLS analyzer. It runs this check on every analysis, flags the finding, and links straight back to this page — no sign-up required.
Related HLS checks
- HLS ladder has a bitrate inversionA lower-resolution variant is allocated more bandwidth than a higher-resolution one, so adaptive switching picks the wrong rendition.
- HLS variant is missing the CODECS attributeWithout CODECS, players must download a segment before they can tell whether they can play the rendition at all.
- HLS variant references an undeclared rendition groupA variant points at an AUDIO or SUBTITLES group that has no matching EXT-X-MEDIA entry, which breaks playback on strict players.
- HLS segment is longer than EXT-X-TARGETDURATIONA segment rounds to more than the declared target duration, which violates the HLS specification.
- HLS live window is shorter than three target durationsThe playlist holds too little content, so any player that falls slightly behind runs off the end of the window.
- HLS playlist has no EXT-X-PROGRAM-DATE-TIMEWithout program date-time the stream cannot be mapped to wall-clock time, which breaks DVR seeking and multi-stream alignment.