-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embed a video #6
Comments
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 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 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 ! |
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 ?
The text was updated successfully, but these errors were encountered: