diff --git a/common/lib/xmodule/xmodule/js/src/video/01_initialize.js b/common/lib/xmodule/xmodule/js/src/video/01_initialize.js index b3c5fb91bc..67046ccc11 100644 --- a/common/lib/xmodule/xmodule/js/src/video/01_initialize.js +++ b/common/lib/xmodule/xmodule/js/src/video/01_initialize.js @@ -138,25 +138,7 @@ function (VideoPlayer) { // support HTML5. When we have this setting in cookies, we can select // the proper mode from the start (not having to change mode later on). function _setPlayerMode(state) { - (function (currentPlayerMode) { - if ( - (currentPlayerMode === 'html5') || - (currentPlayerMode === 'flash') - ) { - state.currentPlayerMode = currentPlayerMode; - } else { - $.cookie('current_player_mode', 'html5', { - expires: 3650, - path: '/' - }); - state.currentPlayerMode = 'html5'; - } - - console.log( - '[Video info]: YouTube player mode is "' + - state.currentPlayerMode + '".' - ); - }($.cookie('current_player_mode'))); + state.currentPlayerMode = 'html5'; } // function _parseYouTubeIDs(state) diff --git a/common/lib/xmodule/xmodule/js/src/video/03_video_player.js b/common/lib/xmodule/xmodule/js/src/video/03_video_player.js index 455d00c120..6ff1b8502d 100644 --- a/common/lib/xmodule/xmodule/js/src/video/03_video_player.js +++ b/common/lib/xmodule/xmodule/js/src/video/03_video_player.js @@ -146,11 +146,6 @@ function (HTML5Video, Resizer) { // Remove from the page current iFrame with HTML5 video. state.videoPlayer.player.destroy(); - // Remember for future page loads that we should use Flash mode. - $.cookie('current_player_mode', 'flash', { - 'expires': 3650, - 'path': '/' - }); state.currentPlayerMode = 'flash'; console.log('[Video info]: Changing YouTube player mode to "flash".');