-
Notifications
You must be signed in to change notification settings - Fork 29
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
Missing internal file-wide language declaration #259
Comments
Also note that this addition might need changes to |
looks like a good idea to me.
David Singer |
WFM. |
I'm not so enthusiastic about adding something that is redundant with If any metadata is added, I would prefer that it has no effect at all in browsers, unless these questions have reasonable answers that I haven't thought of. |
In my mind this would be semantically equivalent to specifying |
@zcorpan Exactly so. It's a convenient way of saying what language all the cues in the file are in so that you don't have to repetitively mark each |
@zcorpan I see. Could we state this as a cue-level setting and file-wide defaults, perhaps?
|
Sure. |
Great, that WFM, but I'm not wedded to the exact syntax of my example. |
The point is to have self-describing files, so that, given the file, one can write the srclang in the track. David Singer |
What problem does that solve? What are the answers to @foolip's questions about track selection and UI? |
The problem it would solve is: given a webvtt file, what value to set the On Mon, Nov 30, 2015 at 11:44 AM, Simon Pieters [email protected]
|
OK, it seems to me that that is already possible with a NOTE block, like
Not unlike what you would do in JS or CSS. (Case study: https://resources.whatwg.org/file-issue.js ) |
Only if we establish a common practice that people follow; we want tools as well as humans to be able to insert/retrieve it. I’m not sure what your concern is; if we document it as either (I don’t think we can do both!) of a) the embedding environment (e.g. the srclang in HTML) overrides it is there still a problem?
David Singer |
I'm trying to understand what people want to achieve here, so I can evaluate different solutions. Now I know the bit about tools. I guess one concern is that if there is dedicated syntax for srclang (and kind etc?) in the file, people will expect browsers to pick it up for the purpose of automatic track selection and showing the UI, which is not possible because the file has not been downloaded yet. (Case study: |
That’s all good to me. I also would like to understand!
ah, right. we can say that it’s not for that, but those words might not stick. David Singer |
The problem I would like to solve is that caption files get used in a I'd like this type of metadata available as an option (but not required) in On Mon, Nov 30, 2015 at 1:18 PM, Simon Pieters [email protected]
|
@zcorpan the suggestion below doesn't work when the WebVTT file is read in a stand-alone video player. Think of loading a mov file into vlc and adding its webvtt file. You don't get to provide a track element there.
The easiest way to provide the track element default settings to a stand-alone player would be to have them as file-wide defaults that the browser ignores, e.g.
This way, you have both, but the browser is bound by the track element settings. (Also, the NOTE above is ignored by ALL players, which it should.) Yes, it introduces some duplication in providing those settings (and possible authoring errors), but we have to be ready for both use cases. |
Nice. What does this mean, though? and foo.vtt says NONBROWSER DEFAULTS ? David Singer |
@dwsinger in the case where the HTML page doesn't have all the information included, it defaults to these not being set. That's an authoring error, just as it is right now. |
Use cases:
Requirements:
*) The language could have an effect on glyph selection and Anything else? Did I misrepresent something? |
LGTM
David Singer |
LGTM On Tue, Dec 1, 2015 at 5:48 AM, Simon Pieters [email protected]
|
That sounds about right, and I agree with "When WebVTT is used in-band in a video resource, these declarations should have no effect" without the trailing question mark. |
re: "in the case where the HTML page doesn't have all the information included, it defaults to these not being set. That's an authoring error, just as it is right now." We can say that as much as we like, but I am fearful that people will write HTML with no lang declaration and say "but the caption file declares the language" (as we're discussing here for VTT, and TTML already can) and expect it to work. Not sure what to DO about it, though. |
@dwsinger flag it with a warning or error in a HTML validator? |
sure, we can and should flag errors; but we may end up having to pave an undesirable cowpath here, which worries me |
Would you prefer a "flash of change" as the file is selected in the web
browser, the file is loaded, and the metadata replaced? It's the only way,
bar having to download & interpret the metadata of all vtt files listed for
a media file as the page loads, and surely that is a new cowpath that is
even less desirable?
Best Regards,
Silvia.
|
@Silvia -- no, no flashes of change! If someone has an HTML label that says 'greek' and the file itself says 'swahili', well, perhaps the users wanting greek may be surprised; the browser should nonethless show that to the user wanting greek, and hope that the swahili label is a bizarrity. |
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=28255#c16
Straw-man syntax:
The in-file language would be added to the language stack after the fallback language (if any) (see #257), and set on the "list of WebVTT Node Objects" object regardless of the fallback language, so a node's applicable language would be
<lang>
<track srclang>
) Allow external language information to apply #257Are implementors interested in supporting this?
The text was updated successfully, but these errors were encountered: