Added get_flags function to dynamically choose flags based on the metadata
Merge pull request #616 from MediaCrush/no_autoplay_with_audio

No autoplay if has_audio