添加字幕本地预览

This commit is contained in:
Harvey committed 2019-11-14 14:00:24 +08:00
1 parent 2878705e72
commit 9cf1571ef8
15 files changed
+279 -81

No files matched your search

@@ -4,6 +4,7 @@ export default function switchMix(art, player) {
Object.defineProperty(player, 'switchQuality', {
value: (url, name = 'unknown') => {
if (url !== template.$video.src) {
URL.revokeObjectURL(template.$video.src);
const { currentTime, playing } = player;
return player.attachUrl(url).then(() => {
option.url = url;
@@ -26,6 +27,7 @@ export default function switchMix(art, player) {
Object.defineProperty(player, 'switchUrl', {
value: (url, name = 'unknown') => {
if (url !== template.$video.src) {
URL.revokeObjectURL(template.$video.src);
const { playing } = player;
return player.attachUrl(url).then(() => {
option.url = url;