Skip to content

feat: Web UI 為瀏覽器可播放的檔案都新增播放按鈕#731

Merged
Genteure merged 2 commits intoBililiveRecorder:devfrom
lekoOwO:dev
Nov 16, 2025
Merged

feat: Web UI 為瀏覽器可播放的檔案都新增播放按鈕#731
Genteure merged 2 commits intoBililiveRecorder:devfrom
lekoOwO:dev

Conversation

@lekoOwO
Copy link
Copy Markdown
Contributor

@lekoOwO lekoOwO commented Nov 15, 2025

feat: Web UI 為瀏覽器可播放的檔案都新增播放按鈕
fix: 修復 ≥1MB/≥1KB 時的檔案大小顯示問題
fix: Safari 上 Date 顯示錯誤的問題

fix: 修復 ≥1MB/≥1KB 時的檔案大小顯示問題
fix: Safari 上 Date 顯示錯誤的問題
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the Web UI file browser by adding play buttons for all browser-playable video files (not just FLV), fixes file size display thresholds, and resolves Safari date parsing issues.

Key Changes:

  • Introduced isPlayable() function to detect multiple video formats (flv, mkv, mp4, webm, ogv) for play button display
  • Fixed file size comparison logic from size / unit >= threshold to size >= unit * threshold to correctly handle files ≥1KB/≥1MB
  • Fixed Safari date parsing by replacing hyphens with slashes and added validation with fallback

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Genteure Genteure enabled auto-merge (squash) November 16, 2025 01:04
@Genteure Genteure merged commit 9ca1980 into BililiveRecorder:dev Nov 16, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants