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()