mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 18:11:20 -08:00
build:all
This commit is contained in:
1 parent
71199d7d0e
commit
08ff3dd19d
112 files changed
+305
-257
No files matched your search
@@ -1,7 +1,23 @@
|
||||
import image from 'bundle-text:./image.svg';
|
||||
|
||||
function checkVersion(art) {
|
||||
const {
|
||||
version,
|
||||
utils: { errorHandle },
|
||||
} = art.constructor;
|
||||
const arr = version.split('.').map(Number);
|
||||
const major = arr[0];
|
||||
const minor = arr[1] / 100;
|
||||
errorHandle(
|
||||
major + minor >= 5,
|
||||
`Artplayer.js@${version} is not compatible the artplayerPluginDashQuality@${artplayerPluginDashQuality.version}. Please update it to version Artplayer.js@5.x.x`,
|
||||
);
|
||||
}
|
||||
|
||||
export default function artplayerPluginDashQuality(option) {
|
||||
return (art) => {
|
||||
checkVersion(art);
|
||||
|
||||
const { $video } = art.template;
|
||||
const { errorHandle } = art.constructor.utils;
|
||||
|
||||
|
||||
Reference in new issue
Block a user