fixes for quality switch:
- if multiple file types are playable, only switch between qualities of the
  same type as is the current media.src
- initialize the quality switch button with the correct type, hd on or hd off