Jump to content

Recommended Posts

Posted

This will be in the next dev build. In one sentence, this means

 

Subtitles without transcoding.

 

Which is obviously a very good thing. The api is very easy to use.

 

First, there is a new property added to MediaStream: IsTextSubtitleStream

 

Then, there are two api endpoints:

 

 

/Videos/{Id}/{MediaSourceId}/Subtitles/{Index}/Stream.srt

/Videos/{Id}/{MediaSourceId}/Subtitles/{Index}/Stream.vtt

 

Any text stream supports this - meaning they can be converted to either srt or vtt, depending on what you need.

 

If resuming or seeking, you can also supply StartPositionTicks.

  • Like 6
  • 2 weeks later...
darwindeeds
Posted

Nice, does the web client use this? I would like to try it out.

Posted

in the dev server yes

Redshirt
Posted

Are you planning on expanding the StreamBuilder class to generate this url as a companion to the video url if subtitles are requested? Or should we handle that logic separately?

Posted

yes, i will be doing that soon, because subtitle delivery method will affect the decision making of direct stream vs transcode

darwindeeds
Posted

Luke, looks like the subtitle stream has to be a part of the m3u8 playlist for iOS to be able to use it without burning/transcoding. Is it something that is possible?

Posted

At some point yea. You'll just have to burn it in for now.

Posted

But with direct stream you can still use this.

darwindeeds
Posted

Ok cool. Thanks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...