|
@@ -273,13 +273,22 @@ if (!empty($keyword)&&(strpos($PathInfo, '/search') === 0))
|
|
|
$answer = '';
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if (!empty($answer) && preg_match('/(https?:\/\/[^\s]+\.mp4)/', $answer, $mp4matches)) {
|
|
|
+ $mp4url = $mp4matches[1];
|
|
|
+
|
|
|
+ $videoPlayer = '<div class="adress"><video src="' . $mp4url . "\" title=\"{$question}\" controls=\"controls\" width=\"100%\"></video> </div>";
|
|
|
+
|
|
|
+ $answer = str_replace($mp4url, $videoPlayer, $answer);
|
|
|
+ }
|
|
|
|
|
|
- if($postContent)
|
|
|
- {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- $answer=$postContent['text'];
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
|