Skip to content

Commit

Permalink
Merge pull request #709 from tf/filter-sources-fix
Browse files Browse the repository at this point in the history
Do not filter sources for audio tags
  • Loading branch information
tf committed Feb 7, 2017
2 parents 2afc821 + a5018ee commit b465d98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pageflow.VideoPlayer.filterSources = function(playerElement) {
if (pageflow.browser.has('mp4 support only')) {
if ($(playerElement).is('video') && pageflow.browser.has('mp4 support only')) {
// keep only mp4 source
$(playerElement).find('source').not('source[type="video/mp4"]').remove();

Expand Down

0 comments on commit b465d98

Please sign in to comment.