-
Notifications
You must be signed in to change notification settings - Fork 69
[xExtension-YouTube] add player autosize feature #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Any comment @kevinpapst ? |
@@ -180,11 +200,14 @@ public function getHtmlPeerTubeContentForLink(FreshRSS_Entry $entry, string $lin | |||
public function getHtml(FreshRSS_Entry $entry, string $url): string | |||
{ | |||
$content = ''; | |||
|
|||
if ($this->autoSize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed the class youtube-plugin-video
. Can you re-add it, to not break existing customizations?
if ($this->autoSize) { | ||
$iframe_attribute = 'class="yt_player_autosize"'; | ||
} else { | ||
$iframe_attribute = 'width="' . $this->width . '" height="' . $this->height . '"'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't remember why the style attribute was used, but I am almost certain, that I added it on purpose.
It's gone now.
@@ -2,6 +2,7 @@ | |||
|
|||
return array( | |||
'yt_videos' => array( | |||
'autosize' => 'Autogröße des Players', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'autosize' => 'Autogröße des Players', | |
'autosize' => 'Automatische Größe des Players', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sharing this 👍 will test it later on.
Could you please have a look at my comments.
Hi all,
I implemented this functionality that allows the youtube iframe's size to be automatically determined.
Hopefully others can enjoy this functionality as well.
Best regards