This repository has been archived on 2024-09-29. You can view files and clone it, but cannot push or open issues or pull requests.
zorn-js/src/index.js

35 lines
991 B
JavaScript
Raw Normal View History

2024-02-26 05:21:51 -05:00
import { ZornVideoPlayer } from "./get"
2024-02-26 21:17:34 -05:00
import { Controls, Title } from "./themes/default"
2024-02-26 05:21:51 -05:00
// Import Functions
import { Events } from './events'
import { PlayPause } from "./functions/PlayPause"
import { SkipAround } from "./functions/SkipAround"
import { Fullscreen } from "./functions/Fullscreen"
import { Subtitles } from "./functions/Subtitles"
import { Volume } from "./functions/Volume"
import { Seek } from "./functions/Seek"
import { BufferDialog } from "./dialogs/Buffering"
2024-02-26 20:59:47 -05:00
import { AutoToggleControls } from "./functions/AutoToggleControls"
import { KeyboardShortcuts } from "./functions/KeyboardShortcuts"
2024-02-26 05:21:51 -05:00
// Apply Controls
ZornVideoPlayer.insertAdjacentHTML("afterend", Controls)
ZornVideoPlayer.insertAdjacentHTML("afterend", BufferDialog)
2024-02-26 21:17:34 -05:00
if (ZornVideoPlayer.getAttribute('layout') === 'default') {
Title()
}
2024-05-17 02:57:38 -05:00
2024-02-26 05:21:51 -05:00
// Init Functions
Events()
2024-02-26 20:59:47 -05:00
KeyboardShortcuts()
2024-02-26 05:21:51 -05:00
PlayPause()
2024-02-26 20:59:47 -05:00
AutoToggleControls() // Broken
2024-02-26 05:21:51 -05:00
SkipAround()
Fullscreen()
Subtitles()
Volume()
Seek()
2024-05-17 02:57:38 -05:00
BufferDialog()