Skip to content

Commit

Permalink
replace occurence of attach/detachMedia in recovery func
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam committed Nov 18, 2015
1 parent 4677cb1 commit 056fff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ class Hls {
recoverMediaError() {
logger.log('recoverMediaError');
var elem = this.media;
this.detachMediaElement();
this.attachMediaElement(elem);
this.detachMedia();
this.attachMedia(elem);
}

/** Return all quality levels **/
Expand Down

0 comments on commit 056fff3

Please sign in to comment.