Currently, playing an uploaded file in the Media tab will not work. The URL is invalid. The URLs should be: OPAC /cgi-bin/koha/opac-retrieve-file.pl?id=bce868a0f5521e9329ccbc73414b4927 STAFF /cgi-bin/koha/opac/opac-retrieve-file.pl?id=bce868a0f5521e9329ccbc73414b4927 Note that the URL used in staff is the OPAC one from 856$u. In this case "opac-retrieve-file" should be prefixed with "opac/". Alternatively, the staff upload URL could be: /cgi-bin/koha/tools/upload.pl?op=download&id=316 NOTE: In this case the id is the real id; in opac parameter id is actually used for the hashvalue.
Or use OPACBaseURL in all cases?
Created attachment 57732 [details] [review] Bug 17673: HTML5Media: Using an OPAC URL for an uploaded file does not always work in staff If you did no fill OPACBaseURL, the media URL for an uploaded file will work in OPAC, but not in staff. You can solve that by filling OPACBaseURL correctly. We could also add a simple replace in C4/HTML5Media.pm. Test plan: [1] Add an upload (say .webm file) via 856$u in editor. [2] Check media tab in opac and staff detail.
The patches for 17501 are coming. This patch is built on top of those.
Created attachment 57733 [details] [review] Bug 17673: HTML5Media: Using an OPAC URL for an uploaded file does not always work in staff If you did not fill OPACBaseURL, the media URL for an uploaded file will work in OPAC, but not in staff. You can solve that by filling OPACBaseURL correctly. We could also add a simple replace in C4/HTML5Media.pm. Test plan: [1] Add an upload (say .webm file) via 856$u in editor. Put 'video/webm' into 856$q. [2] Check media tab in opac and staff detail.
Note from the author :) Still arguable, because the other link on staff detail at Online resources will still not work.