-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
upgrade shaka to 2.3.3 for shaka-project/shaka-player#979 fix fix shaka v2.3.3 text tracks issue (hidden text tracks not handled see shaka-project/shaka-player#1058) by custom text displayer
- Loading branch information
Showing
4 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// @flow | ||
import shaka from 'shaka-player'; | ||
|
||
/** | ||
* shaka doesn't handle hidden caption see https://github.com/google/shaka-player/issues/1058. | ||
* This stops us to handle the caption by ourself by setting the native caption hidden. | ||
* So we have to override the shaka text displayer to cause shaka handles hidden caption. | ||
*/ | ||
export default class TextDisplayer extends shaka.text.SimpleTextDisplayer { | ||
/** | ||
* | ||
* @return {boolean} - isTextVisible | ||
*/ | ||
isTextVisible(): boolean { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters