Files
ChWebsiteApp/CHDataManagement/Page Elements/ContentElements/PostVideo.swift
2025-08-31 18:04:00 +02:00

20 lines
432 B
Swift

struct PostVideo: HtmlProducer {
struct Video {
let path: String
let type: String
}
let videos: [Video]
func populate(_ result: inout String) {
result += "<video autoplay loop muted playsinline>"
result += "Video not supported."
for video in videos {
result += "<source src='\(video.path)' type='\(video.type)'>"
}
result += "</video>"
}
}