Turning media URLs into simple HTML previews of the resource
A feature that I would like to see here is that of turning media URLs into simple HTML previews of the resource. Something like the onebox feature of Discourse.org
Onebox as a library is even free to use and can be implemented in other systems too https://github.com/discourse/onebox
Another one is oEmbed https://oembed.com
- 8 replies
- KajMagnus @KajMagnus2018-11-30 07:42:49.278Z
Hi Olti, nice hearing from you again :- )
I think this is a good idea. In fact there is some basic support for oneboxes already, in Talkyard, but only for a few different things: YouTube videos, Giphy gifs, and images. If I paste a video link in a paragraph of its own:
then, the viedo gets embedded:
Thanks for the link to Discourse's Onebox plugin :- ) That plugin is written in Ruby, but Talkyard in Scala, so I cannot use it. I did have a look long ago, at how Discourse implements oneboxes (including looking at that plugin I think), and got some ideas from that.
I didn't know about oEmbed. Apparently Discourse uses oEmbed tags. Jeff Atwood says: (https://meta.discourse.org/t/quickly-explain-what-onebox-is/28114/16)
Yes, onebox leverages OpenGraph and oEmbed tags, if present on the target site
meaning, Talkyard should most likely do that too. So, at some later point in time, I'll look into oEmbed then :- ) Changing this topic to an Idea, status Planned.
It'd be great to add more types of oneboxes :- ) For example, it should be possible to preview other Talkyard topics, and Discourse topics, and Wikipedia, ... Maybe Flarum? Reddit, HackerNews, WordPress, Ghost, Medium blogs. And ... maybe the way to make that happen, is ... If I make it simpler for other people to open-source contribute to Talkyard, so others can submit Git pull requests with oneboxes of their choice. I've noticed it takes too long for me to do "everything" myself :- P
The very next thing to do here is to embed the links because you know, the most thing the users share are videos and links. For the videos you have the embedding implemented. The links are next. I like a lot how Discourse does this.
Is it too much of work to achieve sometime soon?
- KajMagnus @KajMagnus2018-12-30 10:47:46.151Z
I also like how Discourse does it (and Slack and others). Well, it would not be too much work to implement this now soon, ... if there hadn't been "too many" other things to do, too :- P
I have in mind to make it simpler to contribute to Ty, and hopefully find people (maybe freelancers) who can help out with development, so things like this will happen sooner
- Progresswith doing this idea
- @KajMagnus marked this topic as Planned 2018-11-30 07:45:13.955Z.
- @KajMagnus marked this topic as Done 2018-12-30 10:48:21.141Z.
- @KajMagnus marked this topic as New 2018-12-30 10:48:21.730Z.
- @KajMagnus marked this topic as Planned 2018-12-30 10:48:22.442Z.