Present captions on audio media#1047
Conversation
Caption support was already there, but was only wired up for video. This adds the existing text track support for audio media as well.
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
@DanOlson, do you have any example manifests we can use to test/demonstrate this new functionality? |
|
@demiankatz yes, here's one for an audio media item: and here's one for a video media item, for regression testing The changes here assume the same structure for both audio and video manifests, where the canvas item's Please let me know if you need anything else. Thanks! |
|
@DanOlson @demiankatz Tested Environments:
Results: Audio Manifest Testing: Conclusion: |
|
@LanieOkorodudu, did you test using the Vercel preview in this PR? When I load the manifest into that version, I do see captions on the audio-only example. |
Yes I did. I will have to try it again. I tested in chrome and Firefox. could it be a caching problem. |
|
@demiankatz I tried it again, and yes, it does have captions in the Vercel PR but not in universalviewer.dev. I assume this is because the PR has not yet been merged into dev? Once merged I will check and test it again. |
|
@LanieOkorodudu, that is correct: this PR is designed to correct the missing captions in dev, so your finding that captions work here and do not work in dev is what we would expect. I think this can likely be approved and merged. However, I see that the PR currently targets the main branch; I will adjust it to point to dev and make sure that doesn't break anything. |
demiankatz
left a comment
There was a problem hiding this comment.
This seems ready -- merging now!
|
Thanks, @DanOlson! |
|
Thanks @DanOlson and @demiankatz 👍 |


Description of what you did:
Caption support was already there, but was only wired up for video. This adds the existing text track support for audio media as well.
Addresses part of #747
If approved, this is ready to be merged