Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I use the filter I don't get the full screen button. Doesn't seems like it is a attribute for it. How can I get it?
Comment | File | Size | Author |
---|---|---|---|
#9 | video_filter-fix_html5_fullscreen-2302669-9.patch | 791 bytes | ShaunDychko |
Comments
Comment #1
silkogelman CreditAttribution: silkogelman commentedFor this to work according to YouTube docs the final embed url should get
&fs=1
appended to it.source: https://developers.google.com/youtube/player_parameters#controls
Comment #2
silkogelman CreditAttribution: silkogelman commentedIt seems to be enabled and working for the Flash version,
default HTML5 version doesn't get
&fs=1
appended and doesn't show the button.HTML5 should work when
&fs=1
is appended to the embed code url according to the Youtube docs.Temporary workaround: use the Flash version.
Enable by editing the video_filter settings in the text format settings.
Comment #3
silkogelman CreditAttribution: silkogelman commentedEven if I patch the module and make it add the
&fs=1
to the embed url, it doesn't seem to display the button.However if I then copy paste the same url to a new browser tab, it does display the button.
May have to do with the iframe. not sure.
Comment #4
jox CreditAttribution: jox commentedI fixed it for HTML5 by adding
allowfullscreen="1"
to the iframe. No other change was needed. The cache has to be flushed afterwards to take effect.Attaching a patch.
Comment #5
grn CreditAttribution: grn commentedGreat jox! It works like a charm.
Changing status.
BR. GrN.dk
Comment #6
DamienMcKennaThis should be added to the next release.
Comment #7
DamienMcKennaComment #8
blackdog CreditAttribution: blackdog commentedComment #9
ShaunDychko CreditAttribution: ShaunDychko as a volunteer commentedRerolled #4 against the latest 7.x-3.x of video_filter. #4 no longer applies since the iframe was wrapped in a div.video-filter.
Comment #10
minnur CreditAttribution: minnur at Chapter Three commentedThis has been fixed in D8 version. If I have time I can add this D7 version.
Comment #11
DamienMcKennaThis was resolved via #2577779: Show fullscreen button disabled in iframe for Youtube videos .