add video controls
This commit is contained in:
+26
-1
@@ -123,7 +123,32 @@
|
||||
<!-- Video Player Area -->
|
||||
<section class="player-section">
|
||||
<div class="video-container">
|
||||
<video id="video-player" controls></video>
|
||||
<video id="video-player" controls playsinline></video>
|
||||
|
||||
<!-- Custom Mobile Controls -->
|
||||
<div class="video-controls" id="video-controls">
|
||||
<button class="video-control-btn" id="btn-play" title="Play/Pause">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon">
|
||||
<path d="M8 5v14l11-7z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="video-control-btn" id="btn-mute" title="Mute/Unmute">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon">
|
||||
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="video-control-btn" id="btn-pip" title="Picture in Picture">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon">
|
||||
<path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="video-control-btn" id="btn-fullscreen" title="Fullscreen">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon">
|
||||
<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="player-overlay" id="player-overlay">
|
||||
<div class="overlay-content">
|
||||
<p>Select a channel to start watching</p>
|
||||
|
||||
Reference in New Issue
Block a user