RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.74k stars 10.7k forks source link

[NEW] Tune.pk oEmbed // Generic oEmbed #7110

Open arslancb opened 7 years ago

arslancb commented 7 years ago

Question : Is it possible to integrated a Generic oEmbed? Such that Rocket.chat parse the HTML and find if there is an oEmbed Meta Tag and simply uses it instead of listing website in packages?

Anyway, Tune.pk is video website, here is the code that needs to be added in

packages/rocketchat-oembed/server/providers.js

providers.registerProvider({                                                                                      
    urls: [new RegExp('https?://(www.)?tune.pk/video/([0-9]+)/\\S+')],                                              
    endPoint: 'https://tune.pk/services/oembed?maxheight=360'                                            
}); 

before

RocketChat.oembed = {};

fahad-cb commented 6 years ago

kindly @rodrigogs add Tune oEmbed in Rocket chat. It will be a great addition. Thanks

Awais-cb commented 6 years ago

Hey @rodrigok it would be Awesome if you'll add Tune oEmbed in Rocket chat would be much appreciated.