-
Notifications
You must be signed in to change notification settings - Fork 3
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-11126): upgrade shaka to 3.0.10 #139
Conversation
src/dash-adapter.js
Outdated
@@ -856,8 +858,10 @@ export default class DashAdapter extends BaseMediaSourceAdapter { | |||
let parsedTracks = []; | |||
if (textTracks) { | |||
for (let i = 0; i < textTracks.length; i++) { | |||
let kind = textTracks[i].kind ? textTracks[i].kind + 's' : ''; | |||
kind = kind === '' && this._config.useShakaTextTrackDisplay ? 'smtpe-tt-captions' : kind; |
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.
kind = kind === '' && this._config.useShakaTextTrackDisplay ? 'smtpe-tt-captions' : kind; | |
kind = kind === '' && this._config.useShakaTextTrackDisplay ? 'smpte-tt-captions' : kind; |
src/dash-adapter.js
Outdated
this._shaka && | ||
textTrack instanceof TextTrack && | ||
!textTrack.active && | ||
(textTrack.kind === 'subtitles' || textTrack.kind === 'captions' || textTrack.kind === 'smtpe-tt-captions') |
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.
(textTrack.kind === 'subtitles' || textTrack.kind === 'captions' || textTrack.kind === 'smtpe-tt-captions') | |
(textTrack.kind === 'subtitles' || textTrack.kind === 'captions' || textTrack.kind === 'smpte-tt-captions') |
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.
['subtitles', 'captions', 'smpte-tt-captions'].includes(textTrack.kind)
Description of the Changes
SMPTE-TT Subtitles fix
depends on kaltura/kaltura-player-js#432
solves FEC-11126
CheckLists