diff --git a/modules/player/popcorn.player.js b/modules/player/popcorn.player.js index 5356c53e4..6c4f4f500 100644 --- a/modules/player/popcorn.player.js +++ b/modules/player/popcorn.player.js @@ -393,45 +393,31 @@ // Default to using HTML5 video. Similar to the HTMLVideoElement // wrapper, we put a video in the div passed to us via: // Popcorn.smart( div, src, options ) - var videoHTML, - videoElement, - videoID = Popcorn.guid( "popcorn-video-" ), - videoHTMLContainer = document.createElement( "div" ); - - videoHTMLContainer.style.width = "100%"; - videoHTMLContainer.style.height = "100%"; - - // If we only have one source, do not bother with source elements. - // This means we don't have the IE9 hack, - // and we can properly listen to error events. - // That way an error event can be told to backup to Flash if it fails. - if ( src.length === 1 ) { - videoElement = document.createElement( "video" ); - videoElement.id = videoID; - node.appendChild( videoElement ); - setTimeout( function() { - // Hack to decode html characters like & to & - var decodeDiv = document.createElement( "div" ); - decodeDiv.innerHTML = src[ 0 ]; - - videoElement.src = decodeDiv.firstChild.nodeValue; - }, 0 ); - return Popcorn( '#' + videoID, options ); - } - - node.appendChild( videoHTMLContainer ); - // IE9 doesn't like dynamic creation of source elements on