[Koha-bugs] [Bug 8377] Show HTML5 video/ audio for media files in OPAC and staff client

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 10 18:16:32 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8377

--- Comment #16 from Mirko Tietgen <mirko at abunchofthings.net> ---
Created attachment 11545
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11545&action=edit
Bug 8377 [ENH] Show HTML5 video/ audio for media files in OPAC and staff client

This enhancement uses information from MARC field 856 to generate the
appropriate HTML5 code to embed am media player for the file(s) in a tab in the
OPAC and staff client detail view. This patch supports the HTML5 <audio> and
<video> element. Additionally it gives basic support for the <track> element.
This element is not supported very well by recent browsers. Please consider the
patch working when you get working video or audio.

Changes since last version:
- failed QA: removed default view for media tab, changed tab name to "Play
audio" resp. "Play video".
- put most of the code in separate module and access it from OPAC and staff
client now, so the feature works in both
- had to change sysprefs: HTML5MediaEnabled can be 'none', 'opac', 'staff' or
'both'

* Removed default entry for mp3 again to not imply it is widely supported or
going to be by free software browsers.

If you tested this before, you need to delete the old syspref entries from your
database. There is an attachment to do this, use exactly like
upgradedatabase.pl.

Test plan

- Import attached test data. [I chose media typ 'bk' because it's probably
present on most systems. It's not appropriate for the data but that doesn't
matter.]
- Rebuild zebra -b -z
- Go to Administration->System preferences->enhanced content->HTML5 Media and
set HTML5MediaEnabled to an appropriate setting, save preferences.
- Search the OPAC or staff client for 'bug 8377'
- Get 4 results
- Open detail pages for results. Observe working video (1-3) or audio (4)
player on detail page.

Squashed both patches together

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list