works with Apple HLS sample.