Loomio

HTML5 media embed

JS Juan Santiago Public Seen by 167

We've talked about this:

https://www.loomio.org/d/hAd4SHYa/enable-html5-video-audio-tags

https://www.loomio.org/d/L0GCaZqf/cross-posting-mediagoblin

https://diasp.org/posts/3518976

Now redmatrix can do that.

Is it a good idea to look as it redmatrix does and make in Diaspora?

This seems to me a very imporant business, I have no knowledge of code enough to put my hands, is there anything I can do?

Do you think that this is a priority for diaspora?
How complicated is it?

T

theradialactive Sun 28 Jun 2015 11:08PM

I would like this feature. I often spread podcast episodes on diaspora*, but they aren't listened to or shared as much as videos.

JR

Jason Robinson Tue 30 Jun 2015 6:26PM

@juansantiago

This seems to me a very imporant business, I have no knowledge of code enough to put my hands, is there anything I can do?

  • Find a person who can code it
  • Post a bounty to reward someone to code it
JS

Juan Santiago Tue 30 Jun 2015 9:17PM

ok, I will seek help from my friends.
Where are the rewards for diaspora code published?

DU

Rich Wed 1 Jul 2015 5:24AM

JS

Juan Santiago Sun 5 Jul 2015 12:08AM

Thanks @rich1

DU

Deleted account Tue 7 Jul 2015 5:03PM

I don't think this would be complicated. It'd be basically a little tweak of the MD parsing to make ![]() syntax to detect and embed the media directly. But, as diaspora uses a gem to parse the MD, it'd be more an upstream issue.

N

nolcip Sun 19 Jul 2015 6:44PM

Hello. I have a functioning workaround for this featue.

I implemented just like @augier said. You can find a working example here:
https://podricing.pw/posts/323

How to install this feature:

wget http://hastebin.com/raw/oyicomazeq -O app/assets/javascripts/html5Embed.js
echo "//= require html5Embed" >> app/asset/javascripts/main.js

This is an aditional javascript file thats embed to the rest of the pod's javascript code.

DU

Deleted account Tue 21 Jul 2015 11:46AM

Does it work with <audio> tags also, @nolcip ?

JS

Juan Santiago Tue 21 Jul 2015 11:53AM

@augier

html5 players </ video> also play audio formats such Ogg , we can assume that run, but, good question.

N

nolcip Tue 21 Jul 2015 7:58PM

@augier sure, technically it should work. Aesthetically, though, Itd show an ugly black box.

I added ogg support to the script. You can see it working here:

https://podricing.pw/posts/10426

Install:

wget http://hastebin.com/raw/xeqafeyile -O app/assets/javascripts/html5Embed.js
echo "//= require html5Embed" >> app/asset/javascripts/main.js
Load More