mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 14:19:39 +00:00
96 lines
3.1 KiB
HTML
96 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<script src="player.js"></script>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="Content-Security-Policy" content="
|
|
default-src 'self';
|
|
script-src 'self';
|
|
style-src 'self';
|
|
img-src 'self' data:;
|
|
media-src * blob: file:;
|
|
connect-src *;
|
|
font-src 'self';
|
|
object-src 'none';
|
|
child-src 'none';
|
|
form-action 'self';
|
|
worker-src 'self' blob:;
|
|
">
|
|
|
|
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
|
|
<link rel="stylesheet" href="styles.css">
|
|
<script src="lib/dash.js"></script>
|
|
<script src="lib/hls.js"></script>
|
|
<title>SimpliPlay</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>SimpliPlay</h1>
|
|
<div class="dialog-overlay" id="dialogOverlay">
|
|
<div class="dialog">
|
|
<p>Select how you want to load media:</p>
|
|
<button id="chooseFileBtn">Choose a File</button>
|
|
<button id="enterUrlBtn">Enter a URL</button>
|
|
<button id="hideDialogBtn">Go back</button>
|
|
<input type="file" id="fileInput" accept="video/*,audio/*">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dialog-overlay" id="urlDialogOverlay">
|
|
<div class="dialog">
|
|
<p>Enter media URL:</p>
|
|
<input type="url" id="urlInput" placeholder="Enter media URL here">
|
|
<button id="submitUrlBtn">Submit</button>
|
|
<button id="cancelUrlBtn">Cancel</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="subtitles-overlay" id="subtitlesOverlay">
|
|
<div class="subtitles-dialog">
|
|
<p>Enter subtitles URL:</p>
|
|
<input type="url" id="subtitlesInput" placeholder="Enter subtitles URL here">
|
|
<button id="submitSubtitlesBtn">Submit</button>
|
|
<button id="cancelSubtitlesBtn">Cancel</button>
|
|
</div>
|
|
</div>
|
|
|
|
<video id="mediaPlayer" autoplay controls></video>
|
|
|
|
<div id="customControls">
|
|
<button id="playPauseBtn">Pause</button>
|
|
<input type="range" id="seekBar" min="0" value="0" step="0.1">
|
|
<span id="timeDisplay">00:00 / 00:00</span>
|
|
<button id="volumeBtn">🔊</button>
|
|
<input type="range" id="volumeBar" min="0" max="1" step="0.1" value="1">
|
|
<button id="fullscreenBtn">⛶</button>
|
|
<button id="ccBtn">Add Subtitles</button> <!-- CC button -->
|
|
</div>
|
|
|
|
<div class="gap-box"></div>
|
|
<button id="showDialogBtn">Play more media</button>
|
|
|
|
<!-- Settings gear button -->
|
|
<button id="settingsBtn">⚙️</button>
|
|
|
|
<!-- Settings panel -->
|
|
<div class="dialog-overlay" id="settingsDialogOverlay">
|
|
<div id="settingsPanel">
|
|
<label for="autoplayCheckbox">Autoplay:</label>
|
|
<input type="checkbox" id="autoplayCheckbox" checked><br>
|
|
<label for="loopCheckbox">Loop:</label>
|
|
<input type="checkbox" id="loopCheckbox"><br>
|
|
<label for="controlsCheckbox">Controls:</label>
|
|
<input type="checkbox" id="controlsCheckbox" checked><br>
|
|
<label for="controlsCheckbox">Vivid Colors:</label>
|
|
<input type="checkbox" id="colorsCheckbox"><br>
|
|
<p class="settings-info"><em>Settings apply for this session only.</em></p>
|
|
<button id="saveSettingsBtn">Save Settings</button>
|
|
</div>
|
|
</div>
|
|
<script src="./renderer.js"></script>
|
|
</body>
|
|
|
|
</html>
|