Skip to content
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

Open
skwidy opened this issue Jul 12, 2018 · 5 comments
Open

Embed a video #6

skwidy opened this issue Jul 12, 2018 · 5 comments

Comments

@skwidy
Copy link

skwidy commented Jul 12, 2018

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 :/

image

Can I embed vimeo / youtube ?
Do I need a https://blabla.com/video.mp4 link ?

Any thoughts ?

@dbousque
Copy link

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 :)

@skwidy
Copy link
Author

skwidy commented Jul 12, 2018

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

@dbousque
Copy link

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 :)

@skwidy
Copy link
Author

skwidy commented Jul 12, 2018

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 :)

@dbousque
Copy link

I guess so yes, maybe @OlivierNguyen or @jhoudan have more information about this ? Good luck with your client !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants