Needs work
Project:
Media 23video
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2015 at 12:32 UTC
Updated:
15 Feb 2016 at 08:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gielfeldt commentedDisregard. That was a stupid patch.
Comment #3
gielfeldt commentedComment #4
gielfeldt commentedWell ... only half-stupid. New patch attached.
Comment #5
miroslavbanov commentedPatch #4 looks interesting, will try it out.
Comment #6
miroslavbanov commentedBoth patch #0 and #4 don't work. interpolateUrl is not used at all for generating video iframe, because it is taken from the oembed call instead. And the getEmbedInfo calls oembed from the backend, so protocol-relative urls don't work there.
Comment #7
miroslavbanov commentedThis one worked for me at least.
Comment #8
miroslavbanov commentedHaving other problems. Video 23 allow for other domains that are not *.23video.com, but the certificate that is used is only valid for
CN=*.23video.com. On PHP 5.6 SSL connection was changed to check certificate by default, see - http://php.net/manual/en/migration56.openssl.php. In order to fix that, I should pass stream context to not verify certificate. At this point I might as well use regex to make the url protocol-relative.Comment #9
miroslavbanov commentedNew attempt at fix. Also added back the change from #4, as I can see it might be used in some cases.
Comment #10
gielfeldt commentedIt seems that the oembed code from 23video returns a src beginning with "//", hence being protocol agnostic, so I don't think the first part of the patch is relevant anymore. I've modified the second part slightly, since I've had issues with the protocol-less url, this being a stream wrapper and all.
Comment #12
miroslavbanov commentedI don't see 23video returning protocol-relative urls. See example:
http://kk.23video.com/oembed/?url=http%3A%2F%2Fkk.23video.com%2Fvideo%2F...
Comment #13
gielfeldt commentedI do: http://helbredsprofilendk.23video.com/oembed?url=http%3A//helbredsprofil...
But only in the iframe code. Maybe it's a setting on the 23video account?