title: how to parse a m3u8 playlist to get the bandwidths using javascript?
body: <p>I have a .m3u8 file.I want to parse it using javascript to get the bandwidths.the playlist is attached below</p>
  
  <pre><code>#EXTM3U
  #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=200000, RESOLUTION=720x480
  http://ALPHA.mycompany.com/lo/prog_index.m3u8
  #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=200000, RESOLUTION=720x480
  http://BETA.mycompany.com/lo/prog_index.m3u8
  
  #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=500000, RESOLUTION=1920x1080
  http://ALPHA.mycompany.com/md/prog_index.m3u8
  #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=500000, RESOLUTION=1920x1080
  http://BETA.mycompany.com/md/prog_index.m3u8
  </code></pre>