shaka-player
Advanced tools
Comparing version 4.9.20 to 4.9.21
@@ -764,47 +764,47 @@ | ||
shaka.ui.Locales.Ids = { | ||
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE', | ||
MORE_SETTINGS: 'MORE_SETTINGS', | ||
OFF: 'OFF', | ||
AD_TIME: 'AD_TIME', | ||
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES', | ||
LOOP: 'LOOP', | ||
PLAY: 'PLAY', | ||
CAST: 'CAST', | ||
SKIP_TO_LIVE: 'SKIP_TO_LIVE', | ||
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE', | ||
VOLUME: 'VOLUME', | ||
SURROUND: 'SURROUND', | ||
BACK: 'BACK', | ||
SUBTITLE_FORCED: 'SUBTITLE_FORCED', | ||
AD_DURATION: 'AD_DURATION', | ||
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC', | ||
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE', | ||
AD_TIME: 'AD_TIME', | ||
RESOLUTION: 'RESOLUTION', | ||
AD_STATISTICS: 'AD_STATISTICS', | ||
FAST_FORWARD: 'FAST_FORWARD', | ||
AUTO_QUALITY: 'AUTO_QUALITY', | ||
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE', | ||
UNMUTE: 'UNMUTE', | ||
AD_PROGRESS: 'AD_PROGRESS', | ||
SKIP_AD: 'SKIP_AD', | ||
VOLUME: 'VOLUME', | ||
AUTO_QUALITY: 'AUTO_QUALITY', | ||
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC', | ||
MUTE: 'MUTE', | ||
QUALITY: 'QUALITY', | ||
REPLAY: 'REPLAY', | ||
RECENTER_VR: 'RECENTER_VR', | ||
ON: 'ON', | ||
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE', | ||
LIVE: 'LIVE', | ||
BACK: 'BACK', | ||
UNMUTE: 'UNMUTE', | ||
MUTE: 'MUTE', | ||
PAUSE: 'PAUSE', | ||
STATISTICS: 'STATISTICS', | ||
LANGUAGE: 'LANGUAGE', | ||
CAST: 'CAST', | ||
PLAYBACK_RATE: 'PLAYBACK_RATE', | ||
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN', | ||
NOT_APPLICABLE: 'NOT_APPLICABLE', | ||
REWIND: 'REWIND', | ||
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE', | ||
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE', | ||
AIRPLAY: 'AIRPLAY', | ||
FAST_FORWARD: 'FAST_FORWARD', | ||
LIVE: 'LIVE', | ||
CAPTIONS: 'CAPTIONS', | ||
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE', | ||
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE', | ||
FULL_SCREEN: 'FULL_SCREEN', | ||
NOT_APPLICABLE: 'NOT_APPLICABLE', | ||
PLAY: 'PLAY', | ||
OFF: 'OFF', | ||
PLAYBACK_RATE: 'PLAYBACK_RATE', | ||
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE', | ||
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE', | ||
MORE_SETTINGS: 'MORE_SETTINGS', | ||
SEEK: 'SEEK', | ||
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE', | ||
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE', | ||
PAUSE: 'PAUSE', | ||
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES', | ||
RESOLUTION: 'RESOLUTION', | ||
CAPTIONS: 'CAPTIONS', | ||
SUBTITLE_FORCED: 'SUBTITLE_FORCED', | ||
STATISTICS: 'STATISTICS', | ||
LOOP: 'LOOP', | ||
QUALITY: 'QUALITY', | ||
AD_STATISTICS: 'AD_STATISTICS', | ||
RECENTER_VR: 'RECENTER_VR', | ||
SURROUND: 'SURROUND', | ||
REPLAY: 'REPLAY', | ||
REWIND: 'REWIND', | ||
AD_PROGRESS: 'AD_PROGRESS', | ||
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN', | ||
}; |
@@ -729,2 +729,11 @@ /*! @license | ||
style.alignItems = 'center'; | ||
if (cue.textAlign == Cue.textAlign.LEFT || | ||
cue.textAlign == Cue.textAlign.START) { | ||
style.width = '100%'; | ||
style.alignItems = 'start'; | ||
} else if (cue.textAlign == Cue.textAlign.RIGHT || | ||
cue.textAlign == Cue.textAlign.END) { | ||
style.width = '100%'; | ||
style.alignItems = 'end'; | ||
} | ||
@@ -815,12 +824,2 @@ if (cue.displayAlign == Cue.displayAlign.BEFORE) { | ||
// The position defines the indent of the text container in the | ||
// direction defined by the writing direction. | ||
if (cue.position != null) { | ||
if (cue.writingMode == Cue.writingMode.HORIZONTAL_TOP_TO_BOTTOM) { | ||
style.paddingLeft = cue.position; | ||
} else { | ||
style.paddingTop = cue.position; | ||
} | ||
} | ||
// The positionAlign attribute is an alignment for the text container in | ||
@@ -831,4 +830,32 @@ // the dimension of the writing direction. | ||
style.cssFloat = 'left'; | ||
if (cue.position !== null) { | ||
style.position = 'absolute'; | ||
if (cue.writingMode == Cue.writingMode.HORIZONTAL_TOP_TO_BOTTOM) { | ||
style.left = cue.position + '%'; | ||
style.width = 'auto'; | ||
} else { | ||
style.top = cue.position + '%'; | ||
} | ||
} | ||
} else if (computedPositionAlign == Cue.positionAlign.RIGHT) { | ||
style.cssFloat = 'right'; | ||
if (cue.position !== null) { | ||
style.position = 'absolute'; | ||
if (cue.writingMode == Cue.writingMode.HORIZONTAL_TOP_TO_BOTTOM) { | ||
style.right = cue.position + '%'; | ||
style.width = 'auto'; | ||
} else { | ||
style.bottom = cue.position + '%'; | ||
} | ||
} | ||
} else { | ||
if (cue.position !== null && cue.position != 50) { | ||
style.position = 'absolute'; | ||
if (cue.writingMode == Cue.writingMode.HORIZONTAL_TOP_TO_BOTTOM) { | ||
style.left = cue.position + '%'; | ||
style.width = 'auto'; | ||
} else { | ||
style.top = cue.position + '%'; | ||
} | ||
} | ||
} | ||
@@ -835,0 +862,0 @@ |
{ | ||
"name": "shaka-player", | ||
"description": "DASH/EME video player library", | ||
"version": "4.9.20", | ||
"version": "4.9.21", | ||
"homepage": "https://github.com/shaka-project/shaka-player", | ||
@@ -6,0 +6,0 @@ "author": "Google", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18449519
169503