shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
7.09k stars 1.33k forks source link

Text track kind is misspelled #808

Closed johnBartos closed 7 years ago

johnBartos commented 7 years ago

I believe these enums are wrong: https://github.com/google/shaka-player/blob/01d64584224d4a9546cb0982b7047a6079f08c28/lib/util/manifest_parser_utils.js#L90-L93

According to the spec, valid kinds are subtitles or captions here.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track

joeyparrish commented 7 years ago

After careful review, we have determined that the typo is in the documentation for shakaExtern.Stream and shakaExtern.Track. Those refer to "captions" and "subtitles", even though the constants used are "caption" and "subtitle".

I understand that it is a little confusing to have constants named very similarly to the <track> element attribute names, but the constants in shakaExtern.Track and shakaExtern.Stream are never applied to the kind attribute in <track>.

To summarize:

We will take this as a docs bug and correct the typos in the externs. Thank you for the report!

joeyparrish commented 7 years ago

This fix was just released in v2.1.2.