-
Notifications
You must be signed in to change notification settings - Fork 118
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
audio captions part 2 #830
audio captions part 2 #830
Conversation
@elizoller, do you have an audio file with a companion caption file I can test with? (I have a bunch of audio, but no time-marked transcriptions yet.) |
modules/islandora_audio/js/audio.js
Outdated
|
||
function init(context,settings){ | ||
if (!initialized){ | ||
console.log("hello audio"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, console.log
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -15,14 +15,18 @@ | |||
* @ingroup themeable | |||
*/ | |||
#} | |||
<div id="audioTrack"></div> | |||
{#<video {{ attributes }} controls poster="http://localhost:8000/sites/default/files/2021-03/1-Service%20File.jpg">#} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: commented out <video>
element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@seth-shaw-unlv i used https://umd-mith.github.io/webvtt-player/annotations.html which @kayakr was testing with previously |
… be set in the track config
Yeah.... I totally want that webvtt-player.... |
we could go that route if you want, it wouldn't be that hard |
As a separate PR. Let's get this merged for now. |
ok, sounds good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* pulling the text track outside of the audio element so its not hidden * do not set default in the template, because its an attribute that can be set in the track config
What does this Pull Request do?
Provides a solution to DISPLAY the captions for audio files
What's new?
How should this be tested?
Additional Notes:
This spawned out of conversation on #826 with @kayakr
You should see the text of the captions above the audio player like so:
Interested parties
@Islandora/8-x-committers