Skip to content

A free, self-hostable news aggregator…

Add video control for podcasts

Alexandre Alapetitec3178a4f89d2
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 116f96562..757eacd59 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -261,6 +261,8 @@ class FreshRSS_Feed extends Minz_Model {
$content .= '<br /><img src="' . $elink . '" alt="" />';
} elseif (strpos($mime, 'audio/') === 0) {
$content .= '<br /><audio src="' . $elink . '" controls="controls" />';
+ } elseif (strpos($mime, 'video/') === 0) {
+ $content .= '<br /><video src="' . $elink . '" controls="controls" />';
}
}
}