title: http live streaming (HLS): mixing streams and playlists in index file
body: <p>I'm implementing a small HLS playlist parser.  I was wondering if a variant playlist could also contain streams.</p>
  
  <p>I.e. Is the following allowed?</p>
  
  <pre><code>#EXTM3U
  #EXT-X-TARGETDURATION:8
  #EXT-X-MEDIA-SEQUENCE:2680
  
  #EXTINF:8, 
  https://priv.example.com/fileSequence2680.ts
  
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1280000
  http://example.com/low.m3u8
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2560000
  http://example.com/mid.m3u8
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=7680000
  http://example.com/hi.m3u8
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=65000,CODECS="mp4a.40.5"
  http://example.com/audio-only.m3u8
  </code></pre>
  
  <p>It doesn't really make sense but the spec doesn't explicitly say it's not allowed.</p>
  
  <p>If it were allowed, I would expect a player to play fileSequence2680.ts then files from low.m3u8, mid.m3u8, hi.m3u8 or audio-only.m3u8 depending on the bandwidth.</p>
  
  <p>Thanks</p>