Fix post video

This commit is contained in:
Christoph Hagen 2025-01-18 09:40:04 +01:00
parent bc3f21e7e4
commit e0787f991e

View File

@ -4,7 +4,7 @@ struct PostVideo: HtmlProducer {
let videos: [FileResource] let videos: [FileResource]
func populate(_ result: inout String) { func populate(_ result: inout String) {
result += "<video autoplay loop muted>" result += "<video autoplay loop muted playsinline>"
result += "Video not supported." result += "Video not supported."
for video in videos { for video in videos {
result += "<source src='\(video.absoluteUrl)' type='\(video.type.htmlType!)'>" result += "<source src='\(video.absoluteUrl)' type='\(video.type.htmlType!)'>"