TextformatterVideoEmbed
TextformatterVideoEmbed copied to clipboard
HTTPS support
When a page is served over HTTPS, the module should serve videos that way. Both YouTube and Vimeo support using SSL connections for Oembed.
The protocol should probably defined globally at init rather than the hacky way I have done it within each function.
Thanks good idea! I have updated this to support https.
Hey. I fixed my HTTPS embed problem by changing line 86 to:
86. $embedCode = str_replace('http','https',$data['html']);
My issue came from the fact that OEmbed service only returns http links even if the url that is fed is using https. This gave errors when embedding on https pages.