[DOCU-632] Macro for Youtube embeds Created: 26/Oct/15  Updated: 10/Nov/15  Resolved: 09/Nov/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Christopher Zimmermann Assignee: Christoph Meier
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5d
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:
Sprint: Docu Sprint 3

 Description   

The existing confluence macro: "Widget Connector" has some limitations for youtube embeds.

  • The fullscreen button does not work.
  • Its not possible to specify a playlist.
  • Its not possible to keep it from suggesting a video at the end (usually totally irrelevent - and potentially offensive - or a competitor.

THerefore we should create a new Macro (Since enabling the flexible HTML Macro is a security risk.

THe macro should take 4 parameters:
width
height
youtubeid
playlistid (optional)

It should output:
(If no playlist specified)
<iframe width="420" height="315" src="https://www.youtube.com/embed/d2AfwRTU5bk?rel=0"
frameborder="0" allowfullscreen></iframe>

(If a playlist specified.)
<iframe width="560" height="315" src="https://www.youtube.com/embed/mUOZKeQq938?rel=0&list=PLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZY"
frameborder="0" allowfullscreen></iframe>



 Comments   
Comment by Christopher Zimmermann [ 04/Nov/15 ]

This looks very good as it is. This will be a big improvement to the current youtube embeds (which dont allow fullscreen, dont allow a playlist - and display random content afterwards.)

Additional useful features would be to implement two optional parameters to enable choosing a fragment of the video:
start (In seconds, the point in the timeline to start playing the video.)
stop (In seconds, the point in the timeline to stop playing the video.)

Comment by Christoph Meier [ 05/Nov/15 ]

Ok. I have added the params start and end to specify start and end of the video.
The latest version has been deployed on to wikitest.
czimmermann please make a "final" test on wikitest.
Afterwards i will install the plugin on the prod. confluence instance.

Comment by Christopher Zimmermann [ 09/Nov/15 ]

It looks good to go live!

A further improvement would be to add rel=0 parameter (regardless of whether it has a list or not) so that no "recommended videos" are shown at the end of the video.
The recommended videos are often not-magnolia related.

Comment by Christoph Meier [ 09/Nov/15 ]

Latest proposed change was added.

Plugin is installed now on both wikitest and productive confluence server.

Comment by Christopher Zimmermann [ 10/Nov/15 ]

Great work!
Used on page: https://documentation.magnolia-cms.com/display/DOCS/Demo

Generated at Mon Feb 12 01:10:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.