Skip to content

Commit

Permalink
fix: source plugin need update audio
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 27, 2024
1 parent b0bc674 commit da2ae42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const switchSource = (art: Artplayer, source: artplayPluginSource) => {
});
if (art.controls["quality"]) art.controls.remove("quality");
if (art.setting.find("quality")) art.setting.remove("quality");
if (art.controls["audio"]) art.controls.remove("audio");
if (art.setting.find("audio")) art.setting.remove("audio");
destroyOldCustomPlayLib(art);
art.option.type = source.type;
art.url = source.url;
Expand Down

0 comments on commit da2ae42

Please sign in to comment.