Skip to content

Commit

Permalink
Fix hlsjs onerror retry
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Mar 2, 2022
1 parent c008b4d commit d066280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.4",
"version": "0.0.5",
"name": "@stroeer/stroeer-videoplayer-livestream-ui",
"description": "Ströer Videoplayer Livestream UI",
"main": "dist/StroeerVideoplayer-livestream-ui.cjs.js",
Expand Down
2 changes: 2 additions & 0 deletions src/UI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import noop from './noop'
import SVGHelper from './SVGHelper'

interface IStroeerVideoplayer {
getHls: any
getUIEl: Function
getRootEl: Function
getVideoEl: Function
Expand Down Expand Up @@ -143,6 +144,7 @@ class UI {
const height = videoEl.clientHeight
const width = videoEl.clientWidth
this.deinit(StroeerVideoplayer)
StroeerVideoplayer.getHls().destroy()
videoEl.parentNode.removeChild(videoEl)
const text = document.createElement('div')
text.innerHTML = error
Expand Down

0 comments on commit d066280

Please sign in to comment.