Some publication videos do not have chapters, either because (1) they are very short, or (2) the low-quality version (240p or sometimes 360p) does not have chapters.
In those cases, a blank webvtt file will be created but as a result no cues exist and the video cannot be played at all.
Improve ReferenceVideoUtil to check for this situation. If no chapters exist after making a webvtt file, then run getInfoSync() and make one cue that represents the entire duration of the video.
Some publication videos do not have chapters, either because (1) they are very short, or (2) the low-quality version (240p or sometimes 360p) does not have chapters.
In those cases, a blank webvtt file will be created but as a result no cues exist and the video cannot be played at all.
Improve
ReferenceVideoUtil
to check for this situation. If no chapters exist after making a webvtt file, then rungetInfoSync()
and make one cue that represents the entire duration of the video.