mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 07:02:01 -05:00
[PR #56] [MERGED] [youtube] Add Desktop Support #60
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/56
Author: @ricoberger
Created: 10/29/2023
Status: ✅ Merged
Merged: 10/29/2023
Merged by: @ricoberger
Base:
main← Head:youtube-add-desktop-support📝 Commits (1)
44547eb[youtube] Add Desktop Support📊 Changes
8 files changed (+365 additions, -85 deletions)
View changed files
📝
app/lib/widgets/item/details/item_details_youtube.dart(+5 -72)📝
app/lib/widgets/item/details/utils/item_videos.dart(+159 -1)➕
app/lib/widgets/item/details/utils/item_youtube/item_youtube_video.dart(+27 -0)➕
app/lib/widgets/item/details/utils/item_youtube/item_youtube_video_native.dart(+91 -0)➕
app/lib/widgets/item/details/utils/item_youtube/item_youtube_video_stub.dart(+6 -0)➕
app/lib/widgets/item/details/utils/item_youtube/item_youtube_video_web.dart(+73 -0)📝
app/pubspec.lock(+3 -11)📝
app/pubspec.yaml(+1 -1)📄 Description
It is now pissible to play YouTube videos on the native desktop clients. To achieve this we removed the "youtube_player_iframe" package which was used before to play YouTube video, but which only supported web, iOS and Android as target platforms.
On the web we are now using our own implementation to render an iframe with for the YouTube video.
On all other platforms we are now using the "youtube_explode_dart" package to fetch the video urls for a YouTube video and then we display them within our own video player (the "ItemVideoPlayer" widget which was added in https://github.com/feeddeck/feeddeck/pull/51). We also decided to switch the package for the iOS and Android implementation which already worked before, because we are now able to play YouTube videos in fullscreen and we only have to maintain an exception for the web implementation.
The "ItemVideoPlayer" widget now also supports multiple qualities of an video via the "qualities" paramter, which allows a user to switch between the different video qualities which are available for a YouTube video. Last but not least the widget now uses our primary color for the seek bar.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.