It is now possible to play videos from toots within FeedDeck. For that we are using the "madia_kit" package, which is already used for the Podcast player on Windows and Linux.
The videos from a toot are saved within the "options.videos" field of an item next to the "options.media" field. In the "ItemDetailsMastodon" widget we are then checking if this field is present and contains a list of video urls. These urls can then be played via the "ItemVideos" widget.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/feeddeck/feeddeck/pull/51
**Author:** [@ricoberger](https://github.com/ricoberger)
**Created:** 10/24/2023
**Status:** ✅ Merged
**Merged:** 10/27/2023
**Merged by:** [@ricoberger](https://github.com/ricoberger)
**Base:** `main` ← **Head:** `mastodon-add-support-for-videos`
---
### 📝 Commits (1)
- [`8863b54`](https://github.com/feeddeck/feeddeck/commit/8863b5487f3e4d5b56f82bae414dc0b200fe147d) [mastodon] Add Support for Videos
### 📊 Changes
**14 files changed** (+381 additions, -27 deletions)
<details>
<summary>View changed files</summary>
📝 `app/ios/Podfile.lock` (+31 -1)
📝 `app/lib/main.dart` (+16 -5)
📝 `app/lib/widgets/item/details/item_details_mastodon.dart` (+13 -1)
➕ `app/lib/widgets/item/details/utils/item_videos.dart` (+93 -0)
📝 `app/lib/widgets/item/preview/item_preview_mastodon.dart` (+3 -1)
📝 `app/linux/flutter/generated_plugin_registrant.cc` (+4 -0)
📝 `app/linux/flutter/generated_plugins.cmake` (+1 -0)
📝 `app/macos/Flutter/GeneratedPluginRegistrant.swift` (+8 -0)
📝 `app/macos/Podfile.lock` (+25 -1)
📝 `app/pubspec.lock` (+129 -8)
📝 `app/pubspec.yaml` (+10 -1)
📝 `app/windows/flutter/generated_plugin_registrant.cc` (+9 -3)
📝 `app/windows/flutter/generated_plugins.cmake` (+3 -1)
📝 `supabase/functions/_shared/feed/mastodon.ts` (+36 -5)
</details>
### 📄 Description
It is now possible to play videos from toots within FeedDeck. For that we are using the "madia_kit" package, which is already used for the Podcast player on Windows and Linux.
The videos from a toot are saved within the "options.videos" field of an item next to the "options.media" field. In the "ItemDetailsMastodon" widget we are then checking if this field is present and contains a list of video urls. These urls can then be played via the "ItemVideos" widget.
<!--
Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the
the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz".
If you add a breaking change within your PR you should add ":warning:" to the title,
e.g. ":warning: [core] My breaking change"
-->
<!--
Description of what have been changed. Please also reference an issue, when available.
-->
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/51
Author: @ricoberger
Created: 10/24/2023
Status: ✅ Merged
Merged: 10/27/2023
Merged by: @ricoberger
Base:
main← Head:mastodon-add-support-for-videos📝 Commits (1)
8863b54[mastodon] Add Support for Videos📊 Changes
14 files changed (+381 additions, -27 deletions)
View changed files
📝
app/ios/Podfile.lock(+31 -1)📝
app/lib/main.dart(+16 -5)📝
app/lib/widgets/item/details/item_details_mastodon.dart(+13 -1)➕
app/lib/widgets/item/details/utils/item_videos.dart(+93 -0)📝
app/lib/widgets/item/preview/item_preview_mastodon.dart(+3 -1)📝
app/linux/flutter/generated_plugin_registrant.cc(+4 -0)📝
app/linux/flutter/generated_plugins.cmake(+1 -0)📝
app/macos/Flutter/GeneratedPluginRegistrant.swift(+8 -0)📝
app/macos/Podfile.lock(+25 -1)📝
app/pubspec.lock(+129 -8)📝
app/pubspec.yaml(+10 -1)📝
app/windows/flutter/generated_plugin_registrant.cc(+9 -3)📝
app/windows/flutter/generated_plugins.cmake(+3 -1)📝
supabase/functions/_shared/feed/mastodon.ts(+36 -5)📄 Description
It is now possible to play videos from toots within FeedDeck. For that we are using the "madia_kit" package, which is already used for the Podcast player on Windows and Linux.
The videos from a toot are saved within the "options.videos" field of an item next to the "options.media" field. In the "ItemDetailsMastodon" widget we are then checking if this field is present and contains a list of video urls. These urls can then be played via the "ItemVideos" widget.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.