aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-05-14 09:07:30 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-05-14 09:07:30 +0200
commitc3178a4f89d247064ca97969ae1f22cce9bcd771 (patch)
treee9f969089fffed591505f45ee7ce10214e7fe75f /app/Models/Feed.php
parent7f1c305c869ee315131b7ade7abc99f23106d95b (diff)
Add video control for podcasts
https://github.com/marienfressinaud/FreshRSS/issues/504
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php2
1 files changed, 2 insertions, 0 deletions
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" />';
}
}
}