Bug #58569
closedContent element "media" does not render Youtube videos
100%
Description
In TYPO3 6.2 the "media" content element does not handle Youtube videos correctly: it renders a wrong URL into the object tag.
I compared 6.1 and 6.2, added a "media" element in both and used the same Youtube URL (https://www.youtube.com/watch?v=e0AW-wtPl1o); in 6.1 I get the following URL in the object tag:
http://www.youtube.com/v/e0AW-wtPl1o?fs=1
In 6.2 I get the following:
http://www.youtube.com/embed/e0AW-wtPl1o?fs=1
When examining the URLs, I found out that the one from 6.1 loads a Flash file, while the URL generated in 6.2 fetches an HTML page (which in turn does not play in the Flash object). So in my opinion there are two options:
1. Revert the URL rendering to what it was in 6.1.
2. Change the media element so that Youtube videos are not rendered using Flash, but an Iframe (which is what Youtube recommends anyway).
Updated by Marco Seiler over 10 years ago
I can confirm this issue.
The responsible code is in typo3/sysext/frontend/Classes/MediaWizard/MediaWizardProvider.php on line 141:
$url = $this->getUrlSchema() . 'www.youtube.com/embed/' . $videoId . '?fs=1';
I think it should be
$url = $this->getUrlSchema() . 'www.youtube.com/v/' . $videoId . '?fs=1';
Was introduced while resolving this issue: http://forge.typo3.org/issues/51728
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29952
Updated by Gerrit Code Review over 10 years ago
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/29952
Updated by Thomas Löffler over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6118ac5f62579b7456e02725656d4becd759c4fc.