cloudflare / stream-angular

BSD 3-Clause "New" or "Revised" License
12 stars 11 forks source link

Add track element for transcript/caption file #19

Open jkohler-splice opened 2 years ago

jkohler-splice commented 2 years ago

For various reasons including search engine optimization, it would be helpful if a track element was created along with the video element in the cloudflare-stream. The track element should reference the WebVTT file uploaded to Cloudflare as captions for the video, if there is one. If I am opening this issue in the wrong repo, please redirect me. Thanks much.

third774 commented 2 years ago

You can add captions via the API described here. Does that suit your needs, or is it something else?

andreaSplice commented 2 years ago

@third774 This is something else; we're looking for a way to expose the WebVTT to search bots. To our understanding, given a <video><track src="caption.vtt" /></video> are able to crawl the VTT file. However, with this configuration, there are no tracks listed. So it seems that the Cloudflare captions would not be accessible to crawling.