-
Notifications
You must be signed in to change notification settings - Fork 35
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
) Issue: text track doesn't have a config for styling, there is only an API for styling. Solution: create a text container for the text track and add the options for styling the text track. Add an option to disable external setting by set attribute explicit as null or ''. fix test: should dispatch new state event - updateState dispatch the event so two events dispatched cause FEC-10760
- Loading branch information
Showing
13 changed files
with
430 additions
and
170 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,14 @@ | ||
// @flow | ||
import {TextStyle} from '../../src/track/text-style'; | ||
|
||
declare type PKTextConfigObject = { | ||
enableCEA708Captions: boolean, | ||
useNativeTextTrack: boolean, | ||
textTrackDisplaySetting: Object, | ||
textStyle: TextStyle | PKTextStyleObject, | ||
forceCenter: boolean, | ||
captionsTextTrack1Label: string, | ||
captionsTextTrack1LanguageCode: string, | ||
captionsTextTrack2Label: string, | ||
captionsTextTrack2LanguageCode: string | ||
}; |
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,11 @@ | ||
// @flow | ||
declare type PKTextStyleObject = { | ||
fontSize: string, | ||
fontScale: number, | ||
fontFamily: string, | ||
fontColor: Array<number>, | ||
fontOpacity: number, | ||
backgroundColor: Array<number>, | ||
backgroundOpacity: number, | ||
fontEdge: Array<Array<number>> | ||
}; |
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
Oops, something went wrong.