Skip to content

Commit

Permalink
refactor: media controller
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 26, 2024
1 parent 3150564 commit b0bc674
Show file tree
Hide file tree
Showing 7 changed files with 296 additions and 243 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"@vueuse/core": "^11.0.3",
"@vueuse/router": "^11.0.3",
"animate.css": "^4.1.1",
"artplayer": "^5.1.7",
"artplayer": "^5.2.1",
"artplayer-plugin-danmuku": "^5.1.4",
"axios": "^1.7.6",
"axios": "^1.7.7",
"crypto-js": "^4.2.0",
"dashjs": "^4.7.4",
"element-plus": "^2.8.1",
"gsap": "^3.12.5",
"hls.js": "^1.5.15",
"hls.js": "^1.5.17",
"less": "^4.2.0",
"less-loader": "^12.2.0",
"libass-wasm": "^4.1.0",
Expand Down
11 changes: 0 additions & 11 deletions src/components/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,20 +276,9 @@ const mountPlayer = () => {
destroyOldCustomPlayLib(art);
});
addHotKeyEvnet(art);
setSubtitleOffsetRange(art);
Emits("get-instance", art);
};
const setSubtitleOffsetRange = (art: Artplayer) => {
const setRange = () => {
const { $range } = art.setting.find("subtitle-offset");
$range.min = "-5";
$range.max = "5";
$range.step = "0.1";
};
art.on("setting", setRange);
};
const cleanHotKeyEvent = (art: Artplayer, keys: number[]) => {
keys.forEach((key) => {
art.hotkey.keys[key] = [];
Expand Down
88 changes: 0 additions & 88 deletions src/plugins/audio.ts

This file was deleted.

Loading

0 comments on commit b0bc674

Please sign in to comment.