Made HLS code client dependent(to allow clients fully supporting HLS to get the variant playlist)