]> git.koha-community.org Git - koha.git/commit
Bug 20783: Use iframe to embed Youtube videos
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 12 May 2020 10:54:50 +0000 (12:54 +0200)
committerHayley Mapley <hayleymapley@catalyst.net.nz>
Mon, 12 Oct 2020 23:24:14 +0000 (23:24 +0000)
commit524fe12e4419654d98af485d7dbbc9eedac28141
treebad69fd9ef1550128100354f6f224642c66bc04a
parent7fcd8934c81b26e6576fafba9cb275d44718901f
Bug 20783: Use iframe to embed Youtube videos

WWW::YouTube::Download is broken and not reliable.
Other alternative was to use HTML::Video::Embed but not updated since
years.

The best alternative seems to follow youtube advise and use an iframe
https://developers.google.com/youtube/iframe_api_reference

Test plan:
Put youtube video in 856$u (using different url formats, youtu.be,
youtube.com/embed, etc.)
Enable HTML5MediaEnabled and HTML5MediaYouTube and confirm that the
youtube videos are correctly embeded.

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
C4/HTML5Media.pm
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt