Author Topic: Video/YouTube embeding problem  (Read 3436 times)

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Video/YouTube embeding problem
« on: 3 May 2013, 01:18:56 »
Video/YouTube problem, embedded videos don't show properly.

Here is an example:

https://www.youtube.com/watch?v=Sh7IjiUillI
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Video/YouTube embeding problem
« Reply #1 on: 3 May 2013, 01:37:02 »
This is quite strange. They were working previously, and the rendered HTML code works fine off-site. Tom, Titi, and Softcoder, has anything changed server side recently?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

GunChleoc

  • Horseman
  • ****
  • Posts: 202
    • View Profile
    • Fòram na Gàidhlig
Re: Video/YouTube embeding problem
« Reply #2 on: 3 May 2013, 08:47:54 »
It works fine for me on Firefox/Windows. Maybe your browser doesn't like the code?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Video/YouTube embeding problem
« Reply #3 on: 3 May 2013, 09:19:37 »
It works fine for me on Firefox/Windows. Maybe your browser doesn't like the code?
I notice that it's working for Firefox, as well. However, Chrome isn't displaying the video properly. Taking the snippet of code used to display the video and putting it into a new HTML file displays properly in Chrome.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Video/YouTube embeding problem
« Reply #4 on: 4 May 2013, 00:51:03 »
That's due to the Content Security Policy I adopted for this site. For a reason I'm failing to understand, Chromium considers "www.youtube.com" to not match the hostname contained in the following URL: "http://www.youtube.com/v/Sh7IjiUillI&rel=1&fs=1". I'm trying to get more information on why the Chromium implementation considers this to be a mismatch. If it turns out this can't be fixed I'll loosen those restrictions. In the meantime please use plain HTTP links.
Thanks.

Update:
So I played wit this for a while, trying various ways to work around this restriction. But it turns out the only serious solution is to make the plugin which adds those Youtube embeds to reference the source over httpS and not just http IF the page embedding it uses this scheme. Omega: Do you think you could add this?
« Last Edit: 4 May 2013, 01:07:28 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Video/YouTube embeding problem
« Reply #5 on: 4 May 2013, 01:40:00 »
Test post:


EDIT: Problem appears to be related to the use of HTTP instead of HTTPS. I'll convert the youtube mod to use HTTPS instead, after I finish what I'm currently working on.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

 

anything