From 0b5ecb18cda5581a27388c2e6da3b60b8b8ff059 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 27 May 2020 10:18:34 -0500 Subject: [PATCH] Add looping to Reddit videos since they are gif substitutes almost always --- Frameworks/Account/FeedProvider/Reddit/RedditLink.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/Account/FeedProvider/Reddit/RedditLink.swift b/Frameworks/Account/FeedProvider/Reddit/RedditLink.swift index 25c29b8e8..65378b311 100644 --- a/Frameworks/Account/FeedProvider/Reddit/RedditLink.swift +++ b/Frameworks/Account/FeedProvider/Reddit/RedditLink.swift @@ -105,7 +105,7 @@ final class RedditLinkData: Codable { if let width = media?.video?.width, let height = media?.video?.height { html += "width=\"\(width)\" height=\"\(height)\" " } - html += "src=\"\(videoURL)\" autoplay muted>" + html += "src=\"\(videoURL)\" autoplay muted loop>" return html } @@ -117,7 +117,7 @@ final class RedditLinkData: Codable { if let width = preview?.videoPreview?.width, let height = preview?.videoPreview?.height { html += "width=\"\(width)\" height=\"\(height)\" " } - html += "src=\"\(videoPreviewURL)\" autoplay muted>" + html += "src=\"\(videoPreviewURL)\" autoplay muted loop>" html += linkURL(url) return html }