mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-28 22:10:42 +00:00
Improve the exit action for media player
This commit is contained in:
parent
5aa0bd94c6
commit
ae8063a0af
@ -62,17 +62,14 @@ export class MediaService {
|
||||
}
|
||||
|
||||
exit() {
|
||||
if (!this.audio) {
|
||||
return;
|
||||
if (this.audio) {
|
||||
this.audio.pause();
|
||||
this.audio.currentTime = 0;
|
||||
this.audio = undefined;
|
||||
}
|
||||
|
||||
this.audio.pause();
|
||||
this.audio.currentTime = 0;
|
||||
|
||||
this.index = -1;
|
||||
this.audio = undefined;
|
||||
this.current = undefined;
|
||||
|
||||
this.options.options.showMediaPlayer = false;
|
||||
this.media = [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user