Compare commits

..

No commits in common. "cf9abaa2c346ee096a0e624fceabfe6f2674a2be" and "17b8a602847a53c6161edd681d061b417c791dde" have entirely different histories.

4 changed files with 12 additions and 13 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@minpluto/zorn",
"version": "0.4.82",
"version": "0.4.81",
"author": "SudoVanilla",
"displayName": "Zorn",
"description": "In-House Player built by MinPluto",

View file

@ -13,7 +13,7 @@ const {
ShowBackAndForward,
ShowPlaybackRate,
ShowPiP = true,
ShowFullscreen = true,
ShowFullscreen = true,
// OThers
Subtitles

View file

@ -5,8 +5,6 @@ const {
ShowBackAndForward,
ShowFullscreen
} = Astro.props
console.log('Controller: ' + ShowFullscreen)
---
<script define:vars={{PlayerName, BigPlayButton, ShowBackAndForward, ShowFullscreen}}>
@ -63,9 +61,10 @@ function Buffering() {
// Fullscreen
function Fullscreen() {
console.log('Hey')
// Get Button
if (ShowFullscreen === true) {
var Button_Fullscreen = document.querySelector("#zorn-player-" + PlayerName + " #vc-fullscreen");
}
// Create and Call Functions
function Toggle_Fullscreen() {
@ -85,19 +84,19 @@ function Fullscreen() {
EnterFullscreen();
VideoContainer.requestFullscreen()
}
Update_FullscreenButton()
if (ShowFullscreen === true) {Update_FullscreenButton()}
}
function EnterFullscreen() {
VideoContainer.classList.add('zorn-fullscreen');
Update_FullscreenButton()
if (ShowFullscreen === true) {Update_FullscreenButton()}
}
function ExitFullscreen() {
VideoContainer.classList.remove('zorn-fullscreen');
Update_FullscreenButton()
if (ShowFullscreen === true) {Update_FullscreenButton()}
}
// Event Listener
Button_Fullscreen.onclick = Toggle_Fullscreen;
if (ShowFullscreen === true) {Button_Fullscreen.onclick = Toggle_Fullscreen;}
function Update_FullscreenButton() {
if (document.fullscreenElement) {
Button_Fullscreen.setAttribute("data-title", "Exit full screen (f)");
@ -111,7 +110,7 @@ function Fullscreen() {
// Gesture
Player.addEventListener("dblclick", () => {
Toggle_Fullscreen()
Update_FullscreenButton()
if (ShowFullscreen === true) {Update_FullscreenButton()}
});
// Keyboard Shortcut
@ -353,7 +352,7 @@ function PlayAgain() {
// Init Functions
AutoToggleControls()
Buffering()
if (ShowFullscreen === true) {Fullscreen()}
Fullscreen()
Gestures()
KeyboardShortcuts()
PlayPause()

View file

@ -17,7 +17,7 @@ const {
ShowBackAndForward,
ShowPlaybackRate,
ShowPiP,
ShowFullscreen = true,
ShowFullscreen,
BigPlayButton = false,
YouTube = false,
@ -106,7 +106,7 @@ import './Styles/Iconoir.css'
:
null
}
<Controller PlayerName={PlayerName} BigPlayButton={BigPlayButton} ShowBackAndForward={ShowBackAndForward} ShowFullscreen={ShowFullscreen}/>
<Controller PlayerName={PlayerName} BigPlayButton={BigPlayButton} ShowBackAndForward={ShowBackAndForward}/>
<Seek PlayerName={PlayerName}/>
</div>