-
Notifications
You must be signed in to change notification settings - Fork 179
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
Video Captions Support #4189
Comments
@o-fernandez to detail the requirements and release for this please. |
To keep this very simple, let's do the following:
Can @choumx @barklund @pbakaus @samitron7 please review this and see if it makes sense. Any other details you need me to spec out? I can find time to do it, but don't want to block on me or UX if eng can make progress without us. |
There are two place that the caption upload button should be added. In the design panel here under the design panel under accessibility There is also the edit media dialog. This video widget found in WordPress, has an option for caption uploads looks like The upload button should open the WordPress uploader and be limited to only |
@o-fernandez This approach looks good to me. As for where we should add the cta
@spacedmonkey How did you get to the video widget? I can't seem to trigger that on a regular post. |
Step to get that view.
|
This comment has been minimized.
This comment has been minimized.
@spacedmonkey I made edits to the mocks to show a separate area for captions. I need to create a more consistent pattern for features where you can either delete/replace but this should work for now if we need to get this out today. |
I did some more research into subtitles and it’s more complex than I originally thought. For one, even gutenberg does not support uploading subtitles files at this time. See WordPress/gutenberg#7673 . More importantly, WordPress itself doesn’t not support uploading .vtt files ( or even srt ) which is the subtitle file format. This changes the scope of the work but a lot and needs more thought than I think we have time for right now. I think the video widget example ( I screenshoted in the ticket ) is a weird outlier in WordPress, as I was unable to get it to work in my testing. As WordPress itself doesn’t support this, I think ( as sad as it makes me ) that we should bump to 1.1. If it is not part of the existing WordPress experience, it becomes a nice to have IMO. |
While diving into this I noticed that track tags have a number of required attributes, see the docs. Fields I would flag,
We would need fields to be able to input these values in the design panel. I have a WIP PR #4615 of what I have done so far. It need tests and more design work. |
@o-fernandez / @samitron7 this requires further clarification before it can be actioned. |
I think that we should do as Omar says, Deutsch (German). When a user searches, it search both native and english name. I think it is to hard to maintain a list of translations for all languages, so German in Spanish, Spanish in German etc. WordPress.org, as 201 languages, that is 201 x 201 to be translated. I think if a user does not know the native language, english is a good default, I would say, |
I have been thinking about this data structure.
As we have a repeatable field to add an many track files as you want, it could be possible to add the same file twice. So each object will need a unique id to reference. I will take a look into how pages have their page id generated. |
@o-fernandez @samitron7 Thoughts on this? Perhaps that's OK for a first iteration, but we then customize it in a next step? (Aside: I assume you meant Overall it we've uncovered quite a few unknowns which, as Jonny pointed out, increases complexity. Feels like we might not be able to get this done for the next release. @spacedmonkey could you perhaps summarize your current findings and work a bit? What are your thoughts? |
Assuming it's vtt files, then yes, all else sounds OK as a starting point. Will wait for @spacedmonkey's update with the summary. |
I am still working on the PR. I will update at the end of the day. |
I have something working locally. It needs styling and tests to be added, but it functionally working. I just want to confirm with @samitron7 @o-fernandez that the UX ( please ignore the styling for now ). Here is a video of the UX. https://www.youtube.com/watch?v=5wtRyFt3UjU&feature=youtu.be The important thing to note here is the use of WordPress media picker here. This picker is limited to VTT files and will not let you pick anything but these files. Before this can be merged, we need to work out the list of languages and how we are going to populate this date. I think there need to a fixed list for V1. But you will also need to add the users current language. For example if the fix list is german, english, french and Italian, the user should be able to pick hebrew as the language. @swissspidy Have you had any thoughts on the list of languages / selecting the current language. If you want to play with my PR, it can be found here. #4615 |
I'll let @samitron7 comment on the UX, I think this is acceptable with some refinements as p1/p2 to do later IMO. Re: the list of languages, seems like we need to allow for any of these? https://r12a.github.io/app-subtags/ English (en) We can have more, but I think that the user should be able to easily type a language (e.g., Italian) and get the right code. Then, with the "recently used" section of the picker they could see that next time they are adding a caption (if we can easily implement that part of the picker). |
recommendation for MVP (this ticket) - use the WP language list of ~100 languages with no preselected option |
As agreed, I have implemented the language dropdown with all WordPress languages. The dropdown is extremely long and not specially usable. Is this okay for an MPV - https://youtu.be/OQFlz0izD_E ? |
@o-fernandez - in backlog grooming it was flagged that this MVP version of this will not be completed/ready for end of S39 and will take additional time in S40 to complete, however INFRA pod feels that they could prioritize this for the next week and still have it included in scope for v1.1 |
Note that both search and recently used items require that #4749 is implemented first. I have prioritized this for the next sprint, so @miina or I might even get to that this week. The generalization of the font picker can happen without the API for users present in that ticket to be completed in two separate PRs. |
I feel like the infra pod has done it's work here and this should now be handed off to the editor pod, to finish off. Update: ticket created for styling #4899 |
As you mentioned there's #4899 to hand off styling to Prometheus/Pea pod. I'll update that ticket with details shortly. If you can add the feature flag to #4615 that's fine with me. Then we can code-review & merge it. The update on #4749 is promising. I think it warrants a new ticket to switch dropdown implementation for captions, I'll create that ticket. |
I would be OK with this going out in 1.1 as it is, and prioritize the styling (#4899) for 1.2. In fact, if we can do a small release between 1.1 and 1.2 that includes #4899 all the better. @choumx @swissspidy |
No need to overcomplicate things. Adding tests and improving styling (without autoomplete dropdown) shouldn't take more than a few hours |
I have made some discoveries while finalizing the code.
Some thoughts
@o-fernandez Thoughts. The above sound reasonable? |
Example of subtitles in amp playground. |
Not 100% accurate. Subtitles do work, at least they did for me in AMP playground. The <track default srclang="en" label="English" kind="subtitles" src="https://example.com/sample.vtt"></track> But given the fact that So the next steps are:
* After that, we can improve styling in #4899 |
This ticket is ready for code review. Now the ticket is much more simple, I think we can get this merge and tested for 1.1. |
Verified in QA |
Feature Description
As part of expected functionality the editor should allow for the ability of the user to associate video subtitle files (VTT files) with video media assets.
Product Brief
Figma
Alternatives Considered
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
Implementation Brief
The text was updated successfully, but these errors were encountered: