Updated code for bitrates and smil

Updated code to add choosing the highest bitrate and handling SMIL files
from the.platform