Skip to content

Commit

Permalink
Merge pull request #863 from tf/detect-get-media-element
Browse files Browse the repository at this point in the history
Use Web Audio volume fading only if player has getMediaElement
  • Loading branch information
tf committed Sep 7, 2017
2 parents d8c55fa + f6d6955 commit b2fb388
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pageflow.mediaPlayer.volumeFading = function(player) {
if (!pageflow.browser.has('volume control support')) {
return pageflow.mediaPlayer.volumeFading.noop(player);
}
else if (pageflow.audioContext.get()) {
else if (pageflow.audioContext.get() && player.getMediaElement) {
return pageflow.mediaPlayer.volumeFading.webAudio(
player,
pageflow.audioContext.get()
Expand Down

0 comments on commit b2fb388

Please sign in to comment.