From ceed382222495b8ffbcfb296429aa076a68b1a30 Mon Sep 17 00:00:00 2001 From: Brandon Casey Date: Mon, 25 Jun 2018 14:05:07 -0400 Subject: [PATCH] refactor: removed old bug work-around code (#5200) This removes some old workarounds for Chrome 15 and Safari 5. --- src/js/player.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/js/player.js b/src/js/player.js index 0b58361c34..0199793ae8 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -1170,19 +1170,6 @@ class Player extends Component { // Update the duration if available this.handleTechDurationChange_(); - - // Chrome and Safari both have issues with autoplay. - // In Safari (5.1.1), when we move the video element into the container div, autoplay doesn't work. - // In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays) - // This fixes both issues. Need to wait for API, so it updates displays correctly - if ((this.src() || this.currentSrc()) && this.tag && this.options_.autoplay && this.paused()) { - try { - // Chrome Fix. Fixed in Chrome v16. - delete this.tag.poster; - } catch (e) { - log('deleting tag.poster throws in some browsers', e); - } - } } /**