Closed dwhly closed 11 months ago
You can test this out now at https://qa-via.hypothes.is/, just paste in a YouTube URL. All we have to do to enable it on production is flip the switch
It was also necessary to provision an API key for this. For future reference API keys are managed under the lms-youtube
project in the Google API console.
I have provisioned a key for "Via production" in the same project, using the same settings as the API keys. I did a quick test of flipping the switch, specifically the YOUTUBE_TRANSCRIPTS
feature flag in the via-prod
Elastic Beanstalk environment, this morning and verified that it works. On a technical level to enable this in Via all we need to do is change this value to true
.
Some considerations we might want to think about:
A suggestion @dwhly had re (1) is that the browser extension would show a banner when you attempted to annotate a YouTube video URL using the extension, and that banner would offer to redirect to Via.
A possible solution for (2) is that we check if the annotation was made on the transcript, and redirect to Via if it was. This can be done by checking for the MediaTimeSelector
selector in the annotation's target[0].selector
field, and if so always redirect to Via. For Page Notes there is currently nothing on the annotation which indicates whether the annotation was made on the original page or the transcript.
Following a discussion on today's dev sync, YouTube video annotation has now been turned on in the public Via instance. We haven't done any kind of announcement for this yet, so it is a soft launch.
Example: https://via.hypothes.is/https://www.youtube.com/watch?v=QqsLTNkzvaY
What will it take for us to implement Youtube annotation for everyone through... .via?