From 4c4d19fbc918dfd86ba4a4784d392bd34de4011c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 10 May 2020 10:33:02 -0500 Subject: [PATCH] Changed Reddit video to autoplay while muted. --- 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 314fc404a..36da87852 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)\">" + html += "src=\"\(videoURL)\" autoplay muted>" 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)\">" + html += "src=\"\(videoPreviewURL)\" autoplay muted>" html += linkOutURL(url) return html }