From e4a84f34ee30a1be31b9c39311bb3e0fbf3436cf Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 25 Jun 2026 05:33:11 +0000 Subject: [PATCH] added playbackMethod to videoitem --- src/videos.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/videos.rs b/src/videos.rs index b4f5adc..7e61233 100644 --- a/src/videos.rs +++ b/src/videos.rs @@ -115,6 +115,8 @@ pub struct VideoItem { pub preview: Option, #[serde(skip_serializing_if = "Option::is_none")] pub aspectRatio: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub playbackMethod: Option, } impl VideoItem { pub fn new( @@ -145,6 +147,7 @@ impl VideoItem { embed: None, // Placeholder for embed information preview: None, aspectRatio: None, + playbackMethod: None, } } pub fn from(s: String) -> Result { @@ -194,6 +197,11 @@ impl VideoItem { self } + pub fn playback_method(mut self, playback_method: String) -> Self { + self.playbackMethod = Some(playback_method); + self + } + /// Re-applies the request host to every host-relative proxy URL on this item /// (its `url`, `preview`, and each format's `url`). Cached items may have been /// built without a host; see [`crate::providers::ensure_proxy_url_host`].