Skip to content

Commit

Permalink
Add IOS10 to blacklist for playbackRate hack
Browse files Browse the repository at this point in the history
  • Loading branch information
saebekassebil committed Oct 3, 2016
1 parent cbe725e commit 81fd72d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controllers/player/play.coffee
Expand Up @@ -116,7 +116,7 @@ class LYT.player.command.play extends LYT.player.command
#
# TODO: Find a better way to do this, so we don't have to rely on browser sniffing
# TODO: We'll want to do this as a whitelist instead of a blacklist!
unless @browser.Safari or @browser.IOS9 or @browser.IE11 or @browser.Edge
unless @browser.Safari or @browser.IOS9 or @browser.IOS10 or @browser.IE11 or @browser.Edge
@audio.playbackRate = @playbackRate - 0.0001
else
if Math.abs( @playbackRate - @audio.playbackRate ) > 0.1
Expand Down Expand Up @@ -163,6 +163,7 @@ class LYT.player.command.play extends LYT.player.command
IE = !!(IE9 or IE10 or IE11)
Safari = !!(userAgent.match( /Safari/i ) and userAgent.match( /Macintosh/i ) and not userAgent.match( /iPhone|iPad|iPod|Chrome/i ))
IOS9 = !!(userAgent.match( /iPhone|iPad|iPod/ ) and userAgent.match( /OS 9/ ))
IOS10 = !!(userAgent.match( /iPhone|iPad|iPod/ ) and userAgent.match( /OS 10/ ))

Edge: Edge
IE: IE
Expand All @@ -171,4 +172,5 @@ class LYT.player.command.play extends LYT.player.command
IE11: IE11
Safari: Safari
IOS9: IOS9
IOS10: IOS10

0 comments on commit 81fd72d

Please sign in to comment.