Sha256: d357f3f615cc5091efe1e005f4d200c7f53e0e2bda84874b355691780fe0ab5b
Contents?: true
Size: 491 Bytes
Versions: 6
Compression:
Stored size: 491 Bytes
Contents
pageflow.VideoPlayer.filterSources = function(playerElement) { if (pageflow.browser.has('mp4 support only')) { // keep only mp4 source $(playerElement).find('source').not('source[type="video/mp4"]').remove(); // the video tags initially in the dom are broken since they "saw" // the other sources. replace with clones var clone = $(playerElement).clone(true); $(playerElement).replaceWith(clone); return clone[0]; } else { return playerElement; } };
Version data entries
6 entries across 6 versions & 1 rubygems