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

asked 2023-01-10T19:35:46.087+00:00
Hill, Tim 1 Reputation point

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.
558 questions
Microsoft Graph Teamwork API
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2023-01-18T11:43:02.28+00:00
    SrinivasaRaoDarna - MSFT 6,076 Reputation points Microsoft Employee

    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".

    No comments