TextformatterVideoEmbed icon indicating copy to clipboard operation
TextformatterVideoEmbed copied to clipboard

HTTPS support

Open ffub opened this issue 11 years ago • 2 comments

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.

ffub avatar Jun 25 '13 11:06 ffub

Thanks good idea! I have updated this to support https.

ryancramerdesign avatar Jun 26 '13 13:06 ryancramerdesign

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.

plauclair avatar Mar 09 '14 04:03 plauclair