From 46bcf8a4d3994e00e9f4ea6566e1ec5bcd8024be Mon Sep 17 00:00:00 2001 From: Thibault Nocchi <1619359+ThibaultNocchi@users.noreply.github.com> Date: Tue, 31 Jan 2023 13:04:26 +0100 Subject: [PATCH] feat: partial work --- frontend/package.json | 1 + frontend/src/App.vue | 1 + .../Buttons/SubtitleSelectionButton.vue | 125 +++----- .../src/components/Playback/OsdPlayer.vue | 285 ++++++++++++++++++ .../src/components/Playback/PlayerElement.vue | 109 +++++-- .../src/components/Playback/VideoPlayer.vue | 28 ++ frontend/src/plugins/vuetify.ts | 3 +- frontend/src/store/playbackManager.ts | 30 +- package-lock.json | 6 + 9 files changed, 483 insertions(+), 105 deletions(-) create mode 100644 frontend/src/components/Playback/OsdPlayer.vue create mode 100644 frontend/src/components/Playback/VideoPlayer.vue diff --git a/frontend/package.json b/frontend/package.json index 26a532c4ca9..01d777cbe0f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -36,6 +36,7 @@ "destr": "1.1.1", "dompurify": "2.3.8", "he": "1.2.0", + "hls.js": "1.3.1", "langs": "2.0.0", "lodash-es": "4.17.21", "screenfull": "6.0.1", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d7ea9d9181e..acb92c00009 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -4,5 +4,6 @@ + diff --git a/frontend/src/components/Buttons/SubtitleSelectionButton.vue b/frontend/src/components/Buttons/SubtitleSelectionButton.vue index 2b73f9dc1c2..62a6d6c63ba 100644 --- a/frontend/src/components/Buttons/SubtitleSelectionButton.vue +++ b/frontend/src/components/Buttons/SubtitleSelectionButton.vue @@ -2,95 +2,64 @@ - - - diff --git a/frontend/src/components/Playback/OsdPlayer.vue b/frontend/src/components/Playback/OsdPlayer.vue new file mode 100644 index 00000000000..8c603076cd7 --- /dev/null +++ b/frontend/src/components/Playback/OsdPlayer.vue @@ -0,0 +1,285 @@ + + + + + + + diff --git a/frontend/src/components/Playback/PlayerElement.vue b/frontend/src/components/Playback/PlayerElement.vue index 83ed0a5261c..a8656f66ab6 100644 --- a/frontend/src/components/Playback/PlayerElement.vue +++ b/frontend/src/components/Playback/PlayerElement.vue @@ -1,47 +1,50 @@