Sha256: 5145ccd34dfbdb69c80590f08f9e823b4358a2d77894d927cf9550d1d9a034e3
Contents?: true
Size: 523 Bytes
Versions: 26
Compression:
Stored size: 523 Bytes
Contents
pageflow.VideoPlayer.filterSources = function(playerElement) { if ($(playerElement).is('video') && 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
26 entries across 26 versions & 1 rubygems