HLS Advanced Switching

First build with viewport recognized switching algorithm.