mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
fix: correct "this" context in getData method
This commit is contained in:
parent
8ad54a15a3
commit
8769e33119
@ -22,7 +22,7 @@ class DASH extends EventEmitter {
|
||||
return new Promise((resolve, reject) => {
|
||||
const task = new Task(url, resolve, range)
|
||||
task.once('error', err => {
|
||||
self.emit('error', err)
|
||||
this.emit('error', err)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user