Skip to content

Commit

Permalink
Merge pull request #2276 from sul-dlss/update-readme
Browse files Browse the repository at this point in the history
update readme for media
  • Loading branch information
peetucket authored Dec 13, 2024
2 parents fe4a406 + f4fdfb6 commit d870690
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ Finally, use the ViewComponent preview you identified earlier to do your develop

NOTE: We can dispense with the sibling directory jazz if we decide to publish the Stacks docker image.

## Developing the media player locally without running Stacks
**This will only work for world downloadable items**
1. Add line return window.dispatchEvent(new CustomEvent('auth-success')) in
https://github.com/sul-dlss/sul-embed/blob/99ac3d3e471f30518e4e28bdd13afc31e7ffa4d1/app/javascript/controllers/media_tag_controller.js#L15

### When working on transcription sidebar
1. Add return await this.cuesPromise() here https://github.com/sul-dlss/sul-embed/blob/99ac3d3e471f30518e4e28bdd13afc31e7ffa4d1/app/javascript/controllers/transcript_controller.js#L45
**Note**: Sometimes the media doesn’t quite load right. You might have to refresh the page a couple times to get this to work.



## Updating language tags

sul-embed uses the IANA language subtag registry to resolve user-provided file language codes (e.g., 'en-US') onto user-friendly labels (e.g., "English"), primarily for captions in the media player. This file lives on the web and changes every so often. We cache this file in `vendor/data/language-subtag-registry`, and it can be updated via `rake update_language_tags`.

0 comments on commit d870690

Please sign in to comment.