Playback rate (#411)

* update
This commit is contained in:
Harvey Zack authored and GitHub committed 2022-10-29 21:14:17 +08:00
1 parent efc9cf7362
commit 6715bc457a
16 files changed
+268 -267

No files matched your search

+7 -1
View File
@@ -202,6 +202,10 @@ export default class Artplayer extends Emitter {
return this.template.query;
}
get video() {
return this.template.$video;
}
destroy(removeHtml = true) {
this.events.destroy();
this.template.destroy(removeHtml);
@@ -241,6 +245,9 @@ Artplayer.FAST_FORWARD_TIME = 1000;
Artplayer.TOUCH_MOVE_RATIO = 0.5;
Artplayer.VOLUME_STEP = 0.1;
Artplayer.SEEK_STEP = 5;
Artplayer.PLAYBACK_RATE = [0.5, 0.75, 1, 1.25, 1.5, 2];
Artplayer.ASPECT_RATIO = ['default', '4:3', '16:9'];
Artplayer.FLIP = ['normal', 'horizontal', 'vertical'];
if (typeof document !== 'undefined') {
if (!document.getElementById('artplayer-style')) {
@@ -255,7 +262,6 @@ if (typeof window !== 'undefined') {
window['Artplayer'] = Artplayer;
}
// eslint-disable-next-line no-console
console.log(
`%c ArtPlayer %c ${Artplayer.version} %c https://artplayer.org`,
'color: #fff; background: #5f5f5f',