mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
feat: add danmuku plugin and i18n setup documentation
- Introduced a new danmuku plugin with multiple run code options in the documentation. - Added language settings documentation for i18n, including default languages, import instructions, and examples for adding and modifying languages. - Implemented input handling for media sources in the artplayer-proxy-mediabunny package, supporting various formats including HLS. - Created m3u8 control functionalities for managing audio and video quality settings in the player.
This commit is contained in:
1 parent
23c8f46878
commit
63c8966ed7
69 files changed
+49761
-28126
No files matched your search
@@ -1205,7 +1205,7 @@ function getPosFromEvent(art, event) {
|
||||
}
|
||||
function setCurrentTime(art, event) {
|
||||
if (art.isRotate) {
|
||||
const percentage = event.touches[0].clientY / art.height;
|
||||
const percentage = (event.touches[0].clientY - art.top) / art.height;
|
||||
const second = percentage * art.duration;
|
||||
art.emit("setBar", "played", percentage, event);
|
||||
art.seek = second;
|
||||
|
||||
Reference in new issue
Block a user