mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
fix player destroy control plugins memeory leak
This commit is contained in:
parent
bfbfcab29a
commit
8ef44a4d8f
@ -376,7 +376,7 @@ class MediaProxy extends EventEmitter {
|
||||
let _e = this.media.error || error
|
||||
const type = _e.code ? ERROR_TYPE_MAP[_e.code] : 'other'
|
||||
let message = _e.message
|
||||
if (!this.media.currentSrc) {
|
||||
if (!(this.media.currentSrc || this.media.srcObject)) {
|
||||
message = 'empty_src'
|
||||
_e = {
|
||||
code: 6,
|
||||
|
@ -174,6 +174,10 @@ class Controls extends Plugin {
|
||||
this.unbind('mouseenter', this.onMouseEnter)
|
||||
this.unbind('mouseleave', this.onMouseLeave)
|
||||
}
|
||||
this.left = null
|
||||
this.center = null
|
||||
this.right = null
|
||||
this.innerRoot = null
|
||||
}
|
||||
|
||||
render () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user