Open saschanaz opened 6 years ago
If documented I suppose I wouldn't oppose, but can you not generate the required wrapper? An object with a children member which contains an array of a single object type is "text", etc.
I can, but I hope I wouldn't be required to do that. IMO using tree
without debugging purpose is an unneeded overhead when we already have completely serialized text
property.
I see, I had missed the parenthetical in OP.
Currently I'm trying to write an ASS-to-VTT converter which generates VTTCue-like structures.
The WebVTTSerializer also expects VTTCue-like objects but it expects parser-specific
tree
property, blocking my library to use it directly.It may fallback to
text
iftree
is unavailable, what do you think?(This will also enable compatibility with native VTTCue):