Bug 19339

Summary: Enhance streaming cataloging to include Vimeo
Product: Koha Reporter: leire
Component: OPACAssignee: Wainui Witika-Park <wainuiwitikapark>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aleisha, david, dcook, dominic.pichette, laurence.rault, library, marjorie.barry-vila
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: Sponsored
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
This enhancement enables embedding Vimeo videos under the "Play media" tab for a record: 1. Enable the HTML5MediaEnabled system preference (set to "in OPAC and staff interface"). 2. Enable the new HTML5MediaVimeo system preference (set to "Embed"). 3. Add the URL to 856$u for the record. 4. The record in the OPAC and staff interface has a "Play media" tab with the video embedded.
Version(s) released in:
Circulation function:
Attachments: Bug 19339 - Enhance streaming cataloging to include Vimeo
Bug 19339: [WIP]
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Bug 19339: Enhance streaming cataloging to include Vimeo
Bug 19339: Enhance streaming cataloging to include Vimeo
Bug 19339: Enhance streaming cataloging to include Vimeo

Description leire 2017-09-19 08:18:40 UTC
It will work like Youtube videos but with links of Vimeo.
Comment 1 leire 2017-09-19 13:35:51 UTC
Created attachment 67210 [details] [review]
Bug 19339 - Enhance streaming cataloging to include Vimeo

Create a new preference HTML5MediaVimeo, it works like HTML5MediaYoutube.
The patch uses the player javascript to show de Vimeo video.
The Vimeo video is shown only in the Opac.

Steps to test:
1) Apply patch
2) Catalogue a Vimeo link in 856$u
3) Turn on HTML5MediaEnabled and HTML5MediaVimeo
4) Open the record in OPAC, check that the
  'Play media' tab is showing and playing the video works

Sponsored-by: Tabakalera (Ubik)
Sponsored-by: Scanbit (http://www.scanbit.net/)
Comment 2 Dominic Pichette 2017-09-22 20:05:16 UTC
I'm having difficulty installing your patch. here is the error I get when trying to install with git bz:

fatal: sha1 information is lacking or useless (installer/data/mysql/sysprefs.sql).
Comment 3 Charlotte Stock 2018-11-27 11:45:58 UTC
This enhancement implies that it is not possible to stream videos unless they are from YouTube or Vimeo? This would explain why I have been unable to stream videos from other sources under the Play Media tab; is there a workaround solution to enable videos to be uploaded or streamed within a catalogue record?
Comment 4 David Cook 2021-02-17 02:28:59 UTC
(In reply to Charlotte Stock from comment #3)
> This enhancement implies that it is not possible to stream videos unless
> they are from YouTube or Vimeo? This would explain why I have been unable to
> stream videos from other sources under the Play Media tab; is there a
> workaround solution to enable videos to be uploaded or streamed within a
> catalogue record?

No, you can still stream videos from a file server or S3 for instance. This is about embedding an external video player I think.
Comment 5 Wainui Witika-Park 2025-01-14 05:01:50 UTC
Created attachment 176484 [details] [review]
Bug 19339: [WIP]
Comment 6 Wainui Witika-Park 2025-01-14 05:31:04 UTC
Created attachment 176487 [details] [review]
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Comment 7 Wainui Witika-Park 2025-01-14 05:32:09 UTC
Created attachment 176488 [details] [review]
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Comment 8 Wainui Witika-Park 2025-01-24 00:38:25 UTC
Created attachment 177094 [details] [review]
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Comment 9 Wainui Witika-Park 2025-01-30 01:30:42 UTC
Created attachment 177330 [details] [review]
Bug 19339: [WIP] Enhance streaming cataloging to include Vimeo
Comment 10 Wainui Witika-Park 2025-01-30 02:22:40 UTC
Created attachment 177331 [details] [review]
Bug 19339: Enhance streaming cataloging to include Vimeo

Test plan:

1. Apply patch
2. Run updatedatabase in ktd
3. Set system preferenceHTML5MediaEnabled
4. Enable system preferenceHTML5MediaVimeo
5. Go to a record and edit it
6. Go to 856u - add a vimeo url - save your changes
7. On the biblio detail page - there should be a "Play media" tab above the holdings table
8. The vimeo video should be embedded under the "Play media" tab and be playable

Sponsored-by: Māoriland Film Festival
Comment 11 Laurence Rault 2025-04-01 15:06:59 UTC
Tested on ktd
Merge conflict in C4/HTML5Media.pm
Comment 12 Wainui Witika-Park 2025-04-04 00:28:19 UTC
Created attachment 180609 [details] [review]
Bug 19339: Enhance streaming cataloging to include Vimeo

Test plan:

1. Apply patch
2. Run updatedatabase in ktd
3. Set system preferenceHTML5MediaEnabled
4. Enable system preferenceHTML5MediaVimeo
5. Go to a record and edit it
6. Go to 856u - add a vimeo url - save your changes
7. On the biblio detail page - there should be a "Play media" tab above the holdings table
8. The vimeo video should be embedded under the "Play media" tab and be playable

Sponsored-by: Māoriland Film Festival
Comment 13 Wainui Witika-Park 2025-04-04 00:29:22 UTC
(In reply to Laurence Rault from comment #11)
> Tested on ktd
> Merge conflict in C4/HTML5Media.pm

Thanks Laurence! 

I just solved the conflicts and added the patch again. Hopefully it works better for you now!!
Comment 14 David Nind 2025-04-27 21:03:20 UTC
Created attachment 181574 [details] [review]
Bug 19339: Enhance streaming cataloging to include Vimeo

Test plan:

1. Apply patch
2. Run updatedatabase in ktd
3. Set system preferenceHTML5MediaEnabled
4. Enable system preferenceHTML5MediaVimeo
5. Go to a record and edit it
6. Go to 856u - add a vimeo url - save your changes
7. On the biblio detail page - there should be a "Play media" tab above the holdings table
8. The vimeo video should be embedded under the "Play media" tab and be playable

Sponsored-by: Māoriland Film Festival
Signed-off-by: David Nind <david@davidnind.com>
Comment 15 David Nind 2025-04-27 21:14:48 UTC
I've signed off, as the video was embedded.

I could play some videos, but I couldn't play others.

For the ones I couldn't play, the embedded video has a message saying "Sorry Because of its privacy settings, this video cannot be played here.", clicking on the video takes you to the video on Vimeo's site.

I'm not sure if this is because of settings at Vimeo, or individual browser settings.

A video that worked: https://vimeo.com/77860167

A video that didn't work: https://vimeo.com/1023015294