diff --git a/src/streaming/Stream.js b/src/streaming/Stream.js index 9f85673f9f..74657d8b8f 100644 --- a/src/streaming/Stream.js +++ b/src/streaming/Stream.js @@ -855,12 +855,11 @@ function Stream(config) { if (trackChangedEvent) { let mediaInfo = trackChangedEvent.newMediaInfo; - if (mediaInfo.type !== Constants.TEXT) { - let processor = getProcessorForMediaInfo(trackChangedEvent.oldMediaInfo); - if (!processor) return; - promises.push(processor.prepareTrackSwitch()); - trackChangedEvent = undefined; - } + let processor = getProcessorForMediaInfo(trackChangedEvent.oldMediaInfo); + if (!processor) return; + promises.push(processor.prepareTrackSwitch()); + processor.selectMediaInfo(mediaInfo); + trackChangedEvent = undefined; } return Promise.all(promises)