Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BXC-4630 derivative MP3 from WAV #1789

Merged
merged 11 commits into from
Sep 10, 2024
Merged

Conversation

krwong
Copy link
Contributor

@krwong krwong commented Aug 21, 2024

https://unclibrary.atlassian.net/browse/BXC-4630

  • add AUDIO_ACCESS_COPY to DatastreamType and DatastreamPermissionUtil
  • add AudioDerivativesProcessor and AudioEnhancementRouter to services-camel-app
  • destroy audio derivatives in DestroyDerivativesRouter
  • audioAccessCopy to defaultEnhancements in EnhancementRouter
  • add CdrAudioPath to CdrFcrepoHeaders

@@ -51,7 +51,8 @@ public List<ContentObjectRecord> listViewableFiles(PID pid, AccessGroupSet princ
ContentObjectRecord briefObj = solrSearchService.getObjectById(new SimpleIdRequest(pid, principals));
String resourceType = briefObj.getResourceType();
if (ResourceType.File.nameEquals(resourceType)) {
if (briefObj.getDatastreamObject(DatastreamType.JP2_ACCESS_COPY.getId()) != null) {
if (briefObj.getDatastreamObject(DatastreamType.JP2_ACCESS_COPY.getId()) != null
|| briefObj.getDatastreamObject(DatastreamType.AUDIO_ACCESS_COPY.getId()) != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not totally sure what the impact of this is going to be until we test it, just making a note to remember to check back in on it

…ts/test/assertions, use FcrepoJmsConstants, update context file
@krwong krwong changed the base branch from main to m4a-development September 10, 2024 18:06
@bbpennel bbpennel merged commit c985fc7 into m4a-development Sep 10, 2024
5 checks passed
@bbpennel bbpennel deleted the BXC-4630-derivative-mp3 branch September 10, 2024 18:10
krwong added a commit that referenced this pull request Oct 25, 2024
* BXC-4630 derivative MP3 from WAV (#1789)

* generate mp3 derivatives from wav files

* generate mp3 derivatives from wav files

* fix destroy derivative and enhancement tests

* fix javadoc, unique startuporder value and route id, add log statements/test/assertions, use FcrepoJmsConstants, update context file

* remove constructor, rename bean to addAudioAccessCopyProcessor, add test, update context files

* rename bean addAudioAccessCopyProcessor in context file

* add audio/wave and audio/x-wave to mimetypes

* switch mp3 to m4a

* add audioDerivativeProcessor to service-context

* change audio temp path from -access to -audio

* add audio mimetypes to pattern (#1798)

* use m4a derivates for access

* fix test

* add audio access datastream to isAudio, setSoundContent, and IIIFv3ViewableFilter

* soundContent conditional, add contentObject id to getAccessPath, fix audioDs resolution

* use cover viewer if audio access datastream present

* remove changes to FullRecordController, add audio datastream to hasViewableFiles and performQuery

* fix test

* add audio derivative to DerivativeServiceTest

* Code climate

---------

Co-authored-by: krwong <[email protected]>
Co-authored-by: krwong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants