Embed a video
Hello,
I can't seem to embed a video in a rich message, although sending type 'video' with a url. I'm just getting a blank section :/

Can I embed vimeo / youtube ? Do I need a https://blabla.com/video.mp4 link ?
Any thoughts ?
Hi @skwidy. I don't think our webchat handles videos. A lot of channels supporting videos will just handle direct links to raw video files, not to websites such as youtube, with some notable exceptions like Messenger and Slack. If your target channel is one of those, 'video' messages sent through Recast will work fine there :)
I figured, but in the doc it kind of says it is possible And I can't get my hands on a comparison between channels (bot connectors), but I think I remember everything was ticked as possible in the Webchat
Anyway I found a hideous workaround checking the type is web_url, storing it in my state and checking the next value ... but it's really fragile
So you mean you write some small piece of code to display an embedded youtube player ? What you could do as well would be to implement an implementation for video messages here : https://github.com/RecastAI/Webchat/tree/master/src/components/Message. You could make a PR and the community would benefit from it :)
So basically the idea would be to add a new type in https://github.com/RecastAI/Webchat/blob/master/src/components/Message/index.js
like type === 'video'
and then add the component ?
I'm speeding off for a client but I guess I could try later on to implement it :)
I guess so yes, maybe @OlivierNguyen or @jhoudan have more information about this ? Good luck with your client !