Skip to content

Commit

Permalink
feat: new video player (#216)
Browse files Browse the repository at this point in the history
* Refactor video player

* Add subtitle configuration and error handling

* Update sidebar variable names and subtitle font size

* Fix video player bugs and improve UI

* Refactor video controller and video player sidebar

* Remove minimumSize property and add always on top functionality

* Update color and background settings

* Fix play pause button mismatch

* Add  volume control, screen brightness, auto orientation

* Fix content-type check and dispose timer and focus node

* Add color and padding to mobile controls, fix time formatting in desktop controls

* Add remember subtitle settings

* Add VideoPlayerDLNA widget for DLNA device selection

* Fix subtitle merging issue

* Update text color in Play mode

* Add video player cast functionality

* Add mobile controls for video player and quality selection button

* Add internationalization support and update translations

* Add overflow property to text styles
  • Loading branch information
MiaoMint authored Feb 18, 2024
1 parent a0fe974 commit 300346b
Show file tree
Hide file tree
Showing 15 changed files with 3,896 additions and 870 deletions.
41 changes: 38 additions & 3 deletions assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
"login": "Login",
"no-data": "No data",
"clear": "Clear",
"export": "Export"
"export": "Export",
"off": "Off",
"error-message": "Error message",
"disconnect": "Disconnect"
},
"home": {
"continue-watching": "Continue",
Expand Down Expand Up @@ -169,8 +172,12 @@
"subtitle-none": "No Subtitle",
"subtitle": "Subtitle",
"subtitle-change": "Change Subtitle {title}",
"subtitle-file": "Subtitle File",
"subtitle-file": "Add subtitle File",
"torrent-downloading": "Torrent downloading",
"no-qualities": "No quality available",
"audio": "Audio",
"getting-streamlink": "Getting streamlink...",
"streamlink-error": "Failed to get streamlink",
"tooltip": {
"close": "Close",
"subtitle": "Subtitle",
Expand All @@ -184,6 +191,34 @@
"full-screen": "Full Screen",
"volume": "Volume",
"torrent-file-list": "Torrent file list"
},
"cast": "Cast to device",
"cast-device": "playing on {device}",
"sidebar": {
"tab": {
"episodes": "Episodes",
"qualitys": "Qualitys",
"torrentFiles": "Torrent Files",
"tracks": "Tracks",
"settings": "Settings"
},
"subtitle": {
"title": "Subtitle",
"font-size": "Font size",
"font-color": "Font color",
"background-color": "Background color",
"background-opacity": "Background opacity",
"text-align": "Text align",
"font-weight": "Font weight",
"font-weight-normal": "Normal",
"font-weight-bold": "Bold"
},
"play-mode": {
"title": "Play mode",
"loop": "Loop",
"single": "Single",
"auto-next": "Auto next"
}
}
},
"comic-settings": {
Expand Down Expand Up @@ -283,4 +318,4 @@
"manga-chapter-read": "Manga Chapter Read: {chapters}",
"anime-episode-watch": "Anime Episode Watched: {episodes}"
}
}
}
58 changes: 54 additions & 4 deletions assets/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
"save-success": "保存成功",
"logout": "登出",
"clear": "清除",
"export": "导出"
"export": "导出",
"off": "关闭",
"error-message": "错误信息",
"disconnect": "断开连接"
},
"home": {
"continue-watching": "继续观看",
Expand Down Expand Up @@ -150,8 +153,55 @@
"subtitle-none": "不使用字幕",
"subtitle": "字幕",
"subtitle-change": "切换字幕 {title}",
"subtitle-file": "选择字幕文件",
"torrent-downloading": "正在下载种子"
"subtitle-file": "添加字幕文件",
"torrent-downloading": "正在下载种子",
"no-qualities": "暂无可用画质",
"audio": "音轨",
"getting-streamlink": "正在获取播放链接...",
"streamlink-error": "获取播放链接失败",
"tooltip": {
"close": "关闭",
"subtitle": "字幕",
"play-list": "播放列表",
"quality": "画质",
"speed": "播放速度",
"play": "播放",
"play-or-pause": "播放/暂停",
"previous": "上一个",
"next": "下一个",
"full-screen": "全屏",
"volume": "音量",
"torrent-file-list": "种子文件列表",
"pin": "置顶窗口"
},
"cast": "投屏到设备",
"cast-device": "正在 {device} 上播放",
"sidebar": {
"tab": {
"episodes": "剧集",
"qualitys": "画质",
"torrentFiles": "种子文件列表",
"tracks": "音轨和字幕",
"settings": "设置"
},
"subtitle": {
"title": "字幕",
"font-size": "字体大小",
"font-color": "字体颜色",
"background-color": "背景颜色",
"background-opacity": "背景透明度",
"text-align": "文字对齐",
"font-weight": "字体粗细",
"font-weight-normal": "正常",
"font-weight-bold": "加粗"
},
"play-mode": {
"title": "播放模式",
"single": "播完暂停",
"loop": "循环播放",
"auto-next": "自动下一集"
}
}
},
"reader": {
"chapters": "章节",
Expand Down Expand Up @@ -237,4 +287,4 @@
"manga-chapter-read": "看过的漫画章节: {chapters}",
"anime-episode-watch": "看过的动画剧集: {episodes}"
}
}
}
Loading

0 comments on commit 300346b

Please sign in to comment.