Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Channel Surfer

dash stream with webvtt not show subtitle

I try to show subtitle in dash stream with webvtt, but failed.

I have set captionMode to "On" and  can get available subtitle by availableSubtitleTracks field.

But, No matter I set by subtitleTrack field, or by remote controller(according to, subtitle not shown.

Below is test stream I used from dash.js( :

Below are fields I got from player node:

availableSubtitleTracks: [{"Description":"","Language":"en","TrackName":"dash/c~WEBVTT~en~main~"}]
currentSubtitleTrack: dash/c~WEBVTT~en~main~
globalCaptionMode: On
Is there anything I need to do except for setting captionMode and subtitleTrack?



0 Kudos
Community Streaming Expert

Re: dash stream with webvtt not show subtitle

I tried that stream and just enabled captions using the remote while the stream was playing and I got captions.  Are you getting captions on any videos in any channels?

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Channel Surfer

Re: dash stream with webvtt not show subtitle

Yes, I can see and control caption by merely changing streamFormat to hls and using url below.


0 Kudos
Channel Surfer

Re: dash stream with webvtt not show subtitle

I know why this stream not show subtitle.

Subtitle content only exist on the front part of stream.

I have another question, If the subtitle content can't get from server(for example, baseUrl in mpd is not right or resource on server is remove). Would it show any error message?

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.