Skip to content

Commit c182daf

Browse files
authored
feat(Player): update dispose function (#701)
* fix: 修复报异常问题 * chore(Player): bump version 10.0.0
1 parent 0000ec1 commit c182daf

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/BootstrapBlazor.Player/BootstrapBlazor.Player.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

3+
<PropertyGroup>
4+
<Version>10.0.1</Version>
5+
</PropertyGroup>
6+
37
<PropertyGroup>
48
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components Video Player</PackageTags>
59
<Description>Bootstrap UI components extensions of Plyr</Description>

src/components/BootstrapBlazor.Player/Player.razor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './plyr.js';
1+
import './plyr.js';
22
import './hls.js';
33
import { addLink, addScript } from '../BootstrapBlazor/modules/utility.js';
44
import Data from '../BootstrapBlazor/modules/data.js';
@@ -106,7 +106,7 @@ export function dispose(id) {
106106
const { player } = p;
107107
if (player) {
108108
player.destroy();
109-
player = null;
109+
delete p.player;
110110
}
111111
}
112112
}

0 commit comments

Comments
 (0)