mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 11:18:46 +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) => {
|
return new Promise((resolve, reject) => {
|
||||||
const task = new Task(url, resolve, range)
|
const task = new Task(url, resolve, range)
|
||||||
task.once('error', err => {
|
task.once('error', err => {
|
||||||
self.emit('error', err)
|
this.emit('error', err)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user