Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message-formatting: Document previews generated on uploading video.

Rohan Gudimetlaacb12fa953d5
diff --git a/api_docs/message-formatting.md b/api_docs/message-formatting.md
index a85d56fdc70..d3a1b7f443c 100644
--- a/api_docs/message-formatting.md
+++ b/api_docs/message-formatting.md
@@ -241,6 +241,20 @@ assume that messages sent prior to the introduction of thumbnailing
have been re-rendered to use the new format or have thumbnails
available.
+## Video previews
+
+When a Zulip message is sent linking to an uploaded video, Zulip will
+generate a video preview element with the following format.
+
+``` html
+<div class="message_inline_image message_inline_video">
+ <a href="/user_uploads/path/to/video.mp4">
+ <video preload="metadata" src="/user_uploads/path/to/video.mp4">
+ </video>
+ </a>
+</div>
+```
+
## Mentions and silent mentions
Zulip markup supports [mentioning](/help/mention-a-user-or-group)