Preview
Issue #2
- cescus
- Well, I've studied how the CDN works across the site and I came to the conclusion that the address I use for the video (only some parts of the URL are hardcoded, the rest is dynamic) is not less reliable than any class or tag we use in our templates (If the owner of the site changes some classes the 70% of the templates would be broken, imho). I'm doing simply what telegram already does for yt, vimeo, etc.. I'm just parsing what I have assuming it will be stable as long as possible. For the moment you can keep your hat in place, sorry :( We can wait for the admins to check it and tell us their opinion.
- Type of issue
- Author added their own content
- Reported
- Jun 7, 2017
The only possible correct way to get the full link to the video is to exatracr it from request like "youmedia.fanpage.it/plugins/embed?guid=xxx&video=xxxx"
And this is impossible to do in template because request page from different origin is prohibited.
If new videos will come from another CDN domain this template will crashed.
Of course, if you don't hardcoded domain name, then I apologize in advance, and I take off my hat and ask for clues how you did it? :)