feat: destroyed ui on destroy() but has problems
This commit is contained in:
@@ -47,6 +47,11 @@ https://git.db123.ir/db/VideoPlayer
|
|||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
destroy(): void {
|
||||||
|
this.ui?.destroy();
|
||||||
|
this.adapter.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
private videoElement(video: string | HTMLVideoElement): HTMLVideoElement {
|
private videoElement(video: string | HTMLVideoElement): HTMLVideoElement {
|
||||||
let videoEl;
|
let videoEl;
|
||||||
if (video instanceof HTMLVideoElement) {
|
if (video instanceof HTMLVideoElement) {
|
||||||
@@ -92,10 +97,6 @@ https://git.db123.ir/db/VideoPlayer
|
|||||||
this.adapter.pause();
|
this.adapter.pause();
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy(): void {
|
|
||||||
this.adapter.destroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
get time(): number {
|
get time(): number {
|
||||||
return this.adapter.time;
|
return this.adapter.time;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user