Is it possible to embed a Video/MP4 in a Teams channel message or chat?

Hill, Tim 31 Reputation points
2023-01-10T19:35:46.087+00:00

Is it possible to send a Teams chat or channel message that shows an embedded MP4 video in place? https://learn.microsoft.com/en-us/graph/api/chatmessage-post Attaching an MP4 simply adds as an attachment with no thumbnail or ability to play. Where as attaching a GIF adds an embedded player.

Is there documentation on the allowable valid HTML in the "content" json?

Apparently Team chats allow sending embedded webcam videos, which use a <video> tag, but I don't see any documentation on how that tag works, whether it works for channels, or how to store the content for it.

"body": { "contentType": "html", "content": "<div><video src=&#34;https://graph.microsoft.com/v1.0/chats/19:747ac51f-7c94-4ae8-9bc1-04f4c866a242_7758276b-c13b-4616-8699-0e3e01df8c29@unq.gbl.spaces/messages/1673299288334/hostedContents/aWQ9LHR5cGU9Mix1cmw9aHR0cHM6Ly91cy1hcGkuYXNtLnNreXBlLmNvbS92MS9vYmplY3RzLzAtY3VzLWQxNy0zMWVmMTMwOWI0M2YyZjNhNTczYWE0MzIwMGQ4MmRkMi92aWV3cy92aWRlbw==/$value&#34; data-duration=&#34;PT5.503S&#34; width=&#34;960&#34; height=&#34;540&#34;>Video-Clip</video></div>" }

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,015 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Kevin Swallow 5 Reputation points
    2024-07-18T20:06:46.86+00:00

    Is there an update on this? There should be a way to embed a video on Teams that is located elsewhere. And the above link to upvote the feature is broken.

    1 person found this answer helpful.
    0 comments No comments

  2. Srinivasa Rao Darna 6,721 Reputation points Microsoft Vendor
    2023-01-18T11:43:02.28+00:00

    Hello Hill, Tim,

    Currently Embedding video to a chat or channel message is not possible. You can upvote the feature request created for the same and based on number of votes received and people requesting for similar feature Microsoft Engineering will take up for implementation.
    Option to Embed Video in Chat

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

  3. Anonymous
    2023-02-07T07:34:17.4466667+00:00

    Why, though? I just posted a reply to another, similar answer. I support trauma workers who provide crisis services to domestic violence survivors and those in their community from their homes 24/7. Their work is so hard and lonely. They don't deserve to be forced to jump through all these hoops to share and view videos in the only online space they have to connect with one another. Fix this...please?


  4. David Edgar 0 Reputation points
    2023-08-10T13:46:50.4666667+00:00

    seems daft the MS stream provides you with he embded code yet you can add this into teams

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.