Bug 15225: Make HTML5Media work with file upload feature.
authorMirko Tietgen <mirko@abunchofthings.net>
Mon, 16 Nov 2015 17:10:27 +0000 (18:10 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 15:56:51 +0000 (15:56 +0000)
commit4a2e2f320cc36275900b7f6f5abd61aafd79a8d3
treec5169d70cd4589b0b2d2f23e8e9baa6dd10a5ab0
parentc678525b47790a1b367555bb337e7491efc21efc
Bug 15225: Make HTML5Media work with file upload feature.

Koha::Upload allows files to be attached to bibliographic records.
HTML5Media streaming in Koha does not work with these files.

Test plan:
- apply patch
- make sure OPACBaseURL is set correctly
- enable HTML5MediaEnabled in OPAC and staff client
- connect upload.pl to 856$u in your framework
- upload a file with an extension set in HTML5MediaExtensions,
  make sure to set the codec correctly if you use WEBM (subfield c,
  eg. 'vp8, vorbis')
- save record, view in staff client and browser, check if 'Play
  media' option is available and works

Signed-off-by: Hugo Agud <hagud@orex.es>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/HTML5Media.pm