Project

General

Profile

Actions

Bug #77409

closed

Invalid origin for JS API enabled Youtube videos

Added by Sebastian Michaelsen over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2016-08-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The YouTubeRenderer has the option enablejsapi that allows script access on the embedded Youtube video.

That is a feature provided by Youtube, which is documented here: https://developers.google.com/youtube/player_parameters#origin
As recommended the YouTubeRenderer sets the origin parameter, but it only contains the host name while in Youtube examples origin also contains the request scheme.

For me accessing the video only works when the origin is provided with request scheme.

<iframe id="ytplayer" type="text/html" width="640" height="390" src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1&origin=example.com" frameborder="0"></iframe>
=> script access doesn't work

<iframe id="ytplayer" type="text/html" width="640" height="390" src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1&origin=http://example.com" frameborder="0"></iframe>
=> script access works


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #77953: Bugfix only use domain with scheme for youtube originClosed2016-09-15

Actions
Actions #1

Updated by Sebastian Michaelsen over 8 years ago

The Youtube guy also says it in the documentation video: "Use the full url of your webpage as origin"
https://youtu.be/M7lc1UVf-VE?t=17m2s

Actions #2

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49416

Actions #3

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49416

Actions #4

Updated by Gerrit Code Review about 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49572

Actions #5

Updated by Anonymous about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Ruud Silvrants about 8 years ago

When the request uri contains some get params the origin breaks with the youtube api.
The youtube api says: "you should always specify your domain as the origin parameter value."

For example my domain created is : //www.youtube.com/embed/YE7VzlLtp-4?autohide=1&controls=2&enablejsapi=1&origin=http://example.com/index.php?id=275&type=80001&showinfo=0.

Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF