Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRlc3QiLCJpYXQiOjE1MTYyMzkwMjJ9.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' }}

- name: Upload coverage report
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v6
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
22 changes: 22 additions & 0 deletions src/components/live-tv/hls-player-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,28 @@ export function HlsPlayerModal({
className="hover:bg-zinc-800"
/> : null}

{/* Picture-in-Picture Button */}
{document.pictureInPictureEnabled ? <button
type="button"
onClick={() => {
const video = videoRef.current;
if (!video) return;
if (document.pictureInPictureElement) {
document.exitPictureInPicture().catch(() => {});
} else {
video.requestPictureInPicture().catch(() => {});
}
}}
className="p-2 text-zinc-400 hover:text-white hover:bg-zinc-800 rounded-lg transition-colors"
aria-label="Picture-in-Picture"
title="Picture-in-Picture (mini player)"
>
<svg xmlns="http://www.w3.org/2000/svg" className="w-5 h-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<rect x="2" y="3" width="20" height="14" rx="2" />
<rect x="12" y="9" width="8" height="6" rx="1" />
</svg>
</button> : null}

{/* Refresh Button */}
<button
type="button"
Expand Down
Loading