mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Changed Reddit video to autoplay while muted.
This commit is contained in:
1 parent
fda9be2e41
commit
4c4d19fbc9
1 file changed
+2
-2
@@ -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)\"></video>"
|
||||
html += "src=\"\(videoURL)\" autoplay muted></video>"
|
||||
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)\"></video>"
|
||||
html += "src=\"\(videoPreviewURL)\" autoplay muted></video>"
|
||||
html += linkOutURL(url)
|
||||
return html
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user