Skip to content

Commit

Permalink
fix: use native captions on safari (#53)
Browse files Browse the repository at this point in the history
Due to Safari issue, use native text tracks in any Safari browser (mac or mobile).
  • Loading branch information
Dan Ziv authored and OrenMe committed Nov 1, 2017
1 parent a72e9c4 commit fe5aa16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = function (config) {
},
client: {
mocha: {
timeout: 2000,
reporter: 'html'
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/setup-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function checkNativeHlsSupport(playerConfig: Object): void {
* @returns {void}
*/
function checkNativeTextTracksSupport(playerConfig: Object): void {
if (isIos()) {
if (isSafari()) {
let useNativeTextTrack = Utils.Object.getPropertyPath(playerConfig, 'playback.useNativeTextTrack');
if (typeof useNativeTextTrack !== 'boolean') {
Utils.Object.mergeDeep(playerConfig, {
Expand Down

0 comments on commit fe5aa16

Please sign in to comment.