Commit 4de44409 authored by Mark Harding's avatar Mark Harding

(fix): pause should not be a promise

parent fc659c9f
No related merge requests found
Pipeline #86004501 passed with stages
in 54 minutes and 9 seconds
......@@ -125,11 +125,11 @@ export class MindsVideoDirectHttpPlayer
}
}
async pause() {
pause() {
const player = this.getPlayer();
try {
await player.pause();
player.pause();
} catch (e) {
console.log(e);
}
......@@ -141,7 +141,7 @@ export class MindsVideoDirectHttpPlayer
if (player.paused) {
await this.play();
} else {
await this.pause();
this.pause();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment