Skip to content

Commit

Permalink
Fix mixed spaces and tab (PR#2550)
Browse files Browse the repository at this point in the history
  • Loading branch information
karawitan committed Jul 18, 2019
1 parent 3b6cfdb commit db3842f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/core/mediaelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,10 @@ class MediaElement {
},
triggerAction = (methodName, args) => {
try {
// Sometimes, playing native DASH media might throw `DOMException: The play() request was interrupted`.
// Add this for native HLS playback as well
if (methodName === 'play' &&
(t.mediaElement.rendererName === 'native_dash' || t.mediaElement.rendererName === 'native_hls')) {
// Sometimes, playing native DASH media might throw `DOMException: The play() request was interrupted`.
// Add this for native HLS playback as well
if (methodName === 'play' &&
(t.mediaElement.rendererName === 'native_dash' || t.mediaElement.rendererName === 'native_hls')) {
const response = t.mediaElement.renderer[methodName](args);
if (response && typeof response.then === 'function') {
response.catch(() => {
Expand Down

0 comments on commit db3842f

Please sign in to comment.