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
2024-05-17 03:57:38 -04:00

35 lines
No EOL
991 B
JavaScript

import { ZornVideoPlayer } from "./get"
import { Controls, Title } from "./themes/default"
// 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"
import { AutoToggleControls } from "./functions/AutoToggleControls"
import { KeyboardShortcuts } from "./functions/KeyboardShortcuts"
// Apply Controls
ZornVideoPlayer.insertAdjacentHTML("afterend", Controls)
ZornVideoPlayer.insertAdjacentHTML("afterend", BufferDialog)
if (ZornVideoPlayer.getAttribute('layout') === 'default') {
Title()
}
// Init Functions
Events()
KeyboardShortcuts()
PlayPause()
AutoToggleControls() // Broken
SkipAround()
Fullscreen()
Subtitles()
Volume()
Seek()
BufferDialog()