-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(FEC-7106): captions on IE & edge #147
Conversation
src/player.js
Outdated
*/ | ||
_removeCueTextPatch(): void { | ||
const textCue = this._activeTextCues; | ||
if (textCue.length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_activeTextCues
can be an array so need to iterate over all of it and throw out the out of bound cues and keep the ones in it
src/player.js
Outdated
const cueEndTime = textCue._endTime; | ||
const cueStartTime = textCue._startTime; | ||
const currTime = this.currentTime; | ||
if (currTime > cueEndTime || currTime < cueStartTime) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to prepare the array you send to processCues
before calling it as it is not aware of time, just display.
Calling it like this will cause only the last cue in the array to appear
Description of the Changes
patch to fix the captions issue on ie and edge, until this issue is resolved. when seeking to a place without captions, the previous captions (if there were any) are still shown. this patch removes them.
CheckLists