I am attempting to write a javascript function that will enable an instance of JW Player to automatically switch from a primary live HLS stream to a backup live HLS stream in the event of an error (ex: primary encoder goes down).I am attempting to write a javascript function