Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Embedded captions using iOS SDK


Using the iOS SDK, Is there a way to get caption/subtitles controls displayed in the player chrome for .mp4 files with embedded srt/vtt tracks? The native iOS AVPlayer does this automatically, but the controls don't appear in JWPlayer and I haven't found a way to enable it. The documentation talks about using sidecar files but doesn't mention embedded tracks.

3 Community Answers

Daniel Berger

JW Player Support Agent  
0 rated :

Hi,

Thank you for the question. My name is Daniel and I am an SDK Support Engineer. I would be happy to answer your question.
You can certainly implement captions in our iOS SDK. Here is a document that will assist you in achieving that:
https://developer.jwplayer.com/sdk/ios/docs/developer-guide/customization/captions/

You can also see a code example in our open source project:
https://github.com/jwplayer/jwplayer-sdk-ios-demo

Please let me know if you have any other questions,
Daniel

n...

User  
0 rated :

Hi Daniel,

i did read the developer guide and look through the demo project, but those are examples of using a separate sidecar captions file - I'm talking about mp4 files with embedded caption tracks rather than external files.

Daniel Berger

JW Player Support Agent  
0 rated :

Hi,

Thank you for clarifying your use case. We do not currently support captions tracks that are embedded in your video file in our SDK.

Please let me know if you have any other questions,
Daniel

This question has received the maximum number of answers.