From d171795e7c7de5c41bce35dc11476e61473885ae Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 19 Oct 2024 17:07:05 +0200 Subject: [PATCH] [#414] Added embedded player support for Jellyfin and YouTube media. --- .../src/components/panels/Media/Browser.vue | 2 + .../components/panels/Media/EmbedPlayer.vue | 158 ++++++++++++++++++ .../src/components/panels/Media/Index.vue | 29 +++- .../src/components/panels/Media/Item.vue | 2 +- .../panels/Media/Providers/Jellyfin.vue | 3 + .../panels/Media/Providers/Jellyfin/Mixin.vue | 1 + .../Providers/Jellyfin/views/Media/Index.vue | 1 + .../Providers/Jellyfin/views/Movies/Index.vue | 1 + .../Providers/Jellyfin/views/Music/Index.vue | 1 + .../panels/Media/Providers/YouTube.vue | 4 + .../Media/Providers/YouTube/Channel.vue | 2 + .../panels/Media/Providers/YouTube/Feed.vue | 2 + .../Media/Providers/YouTube/Playlist.vue | 2 + 13 files changed, 205 insertions(+), 3 deletions(-) create mode 100644 platypush/backend/http/webapp/src/components/panels/Media/EmbedPlayer.vue diff --git a/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue b/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue index dbb542d82b..478e16e50d 100644 --- a/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue +++ b/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue @@ -35,6 +35,7 @@ @path-change="$emit('path-change', $event)" @play="$emit('play', $event)" @play-with-opts="$emit('play-with-opts', $event)" + @view="$emit('view', $event)" /> @@ -61,6 +62,7 @@ export default { 'remove-from-playlist', 'remove-playlist', 'rename-playlist', + 'view', ], components: { diff --git a/platypush/backend/http/webapp/src/components/panels/Media/EmbedPlayer.vue b/platypush/backend/http/webapp/src/components/panels/Media/EmbedPlayer.vue new file mode 100644 index 0000000000..c1ce71f018 --- /dev/null +++ b/platypush/backend/http/webapp/src/components/panels/Media/EmbedPlayer.vue @@ -0,0 +1,158 @@ +