Project

General

Profile

Actions

Feature #85114

closed

modestbranding in YouTube

Added by Reindl Bernd almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2018-05-30
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
On Location Sprint

Description

Hello.

Our customer needs to set the modestbranding attribute for YouTube videos. This attribute is not supported by YouTubeRenderer.php. So i add this code:

if (isset($options['relatedVideos'])) {
$urlParams[] = 'rel=' . (int)(bool)$options['relatedVideos'];
}
/*ADD*/
if (isset($options['modestbranding'])) {
$urlParams[] = 'modestbranding=' . (int)(bool)$options['modestbranding'];
}
/*ADD [END]*/
if (!isset($options['enablejsapi']) || !empty($options['enablejsapi'])) {
$urlParams[] = 'enablejsapi=1&origin=' . rawurlencode(GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST'));
}

Is ist possible to integrate this in the core?


Files

YouTubeRenderer.php (5.67 KB) YouTubeRenderer.php Reindl Bernd, 2018-06-04 07:32
Actions #1

Updated by Frans Saris almost 6 years ago

Sure, please push a patch to or review system.

Could you please add a link to the YouTube docs here. Did we miss this option or is this new?

Actions #2

Updated by Guido Schmechel almost 6 years ago

Found the info at https://developers.google.com/youtube/player_parameters?hl=en#modestbranding

There are a lot more options which aren't implemented but which we could handle via "additionalAttributes"? What do you say?

Best, Guido

Actions #3

Updated by Reindl Bernd almost 6 years ago

Guido Schmechel wrote:

Found the info at https://developers.google.com/youtube/player_parameters?hl=en#modestbranding

There are a lot more options which aren't implemented but which we could handle via "additionalAttributes"? What do you say?

Best, Guido

At the moment i only need modestbranding. But full support would be nice.

Actions #4

Updated by Reindl Bernd almost 6 years ago

Frans Saris wrote:

Sure, please push a patch to or review system.

Could you please add a link to the YouTube docs here. Did we miss this option or is this new?

Sorry. But i dont know how to patch a file. You can find the edited File attached. Row 123 - 125.

Actions #5

Updated by Benni Mack almost 6 years ago

  • Target version changed from 8.7.15 to 8.7.19
Actions #6

Updated by Gerrit Code Review almost 6 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/57273

Actions #7

Updated by Guido Schmechel almost 6 years ago

I decide to set this as "Task" because of the setting from Benni to support 8 and 9. This just include the "modestbranding" parameter. We should always think about fullsupport, but not in this ticket ;-)

Actions #8

Updated by Frans Saris almost 6 years ago

  • Complexity set to easy
  • Sprint Focus set to On Location Sprint
Actions #9

Updated by Gerrit Code Review almost 6 years ago

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

Actions #10

Updated by Guido Schmechel almost 6 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF