-
Notifications
You must be signed in to change notification settings - Fork 19
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
Subtitle displays for layers which play video #239
Comments
WebXR Layers don't display the native video element only the video stream just like in WebGL. |
This really should be a layer to make it as clear and readable as possible rather than just using WebGL. I am not sure if the Oculus OS has subtitles built in but it should be something the UA controls font-szie/positioning to maximise clarity for the user and allow them to have consistent subtitles across web sites. |
The author is free to put a layer in front of the video to display the subtitles. With WebXR DOM Layers, this would be possible. |
For me styling is a nice to have rather than a core feature. The must have feature as I can see is a user agent controlled subtitle for sounds which developers can provide the text and hints as to the origin of the sound source. The user can select what size they want the subtitles how they want the subtitles displayed by the browser since there are a few behaviors that work differently for different people. e.g.
By providing a browser hook we can encourage developers to do it properly and allow users to have a consistent subtitle experience across many sites. Without needing to configure the required font-size on each individual web page. Or worse a VR site making the font too small with no option to increase the size making them useless. |
As far as I know, there is no support for positional audio in video. It would have to be dealt with separately.
We shouldn't invent something new just for WebXR layers. Authors can create subtitles by themselves or by using existing frameworks and this will work better than some default. |
I'm not too concerned with positional audio from the video itself. I am not even sure if subtitles files even support that yet. What I am concerned with is developers playing a video with audio from a layer at a position in the environment. For 360 video the subtitles will need to be placed where they could be visible at all times. As an accessibility feature a default picked by the user for their own needs is better than something made by developers. Text on surfaces in WebGL is a poor reading experience and even if/when we get DOM layers they still won't be able to provide a global setting for subtitle behaviour. |
I don't understand where the subtitles would be drawn. Would they be in their own layer? |
Yes, in their own layer,
Yes, always on top.
…On Tue, 12 Jan 2021, 22:10 Rik Cabanier, ***@***.***> wrote:
I don't understand where the subtitles would be drawn. Would they be in
their own layer?
How would they interact with other layers? Would they always be on top?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#239 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAHSMRADWIDNWAXTUXMIPDSZTCEDANCNFSM4V7P6WWQ>
.
|
On top of everything, or only the video layer? Let's discuss this during next week's meeting. Maybe you can write up a concrete proposal? (ie some IDL + compositing behavior) |
/agenda to chat about subtitles in XR
…On Tue, 12 Jan 2021, 22:32 Rik Cabanier, ***@***.***> wrote:
Yes, in their own layer, Yes, always on top.
On top of everything, or only the video layer?
Let's discuss this during next week's meeting. Maybe you can write up a
concrete proposal (ie some IDL + compositing behavior)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#239 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAHSMXT6YPZAP3OFG2EGETSZTEWVANCNFSM4V7P6WWQ>
.
|
During the weekly call we discussed this issue in more detail. There seems to be consensus that we should provide support for captions and subtitles and that it would be best if we could tie into the accessibility features of the operating system. For instance, if there was a system preference to always provide captions, the UA should leverage that during immersive video playback. This would give the user captions in the style of the current OS. If people think this sounds reasonable, I will add some normative text to the spec that we can discuss in an upcoming call. |
Subtitles have been discussed a lot in some of the a11y discussions such as in XAUR. Ideally a video with a subtitle track played through layers should display the subtitle in a way which works well and makes sense.
Here is the example mark up for a video with a video track: https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video#html_markup
It would be handy if the subtitles can be positioned by the UA outside of the layer boundary so a video being played off to the side can still be "listened to" using the subtitles.
It would also be handy if the subtitle layer could be used by elements with subtitle tracks.
If they can also be styled with the
::cue
pseudo class that would also be very great.https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video#styling_the_displayed_subtitles
The text was updated successfully, but these errors were encountered: