Technical Q&A QA1794
Customizing subtitles with AVPlayer
Q:
I'm trying to display a subtitle track with AVPlayer
and set the text style using the textStyleRules
property, but the text style remains unchanged. What am I doing wrong?
A: The AVPlayer
textStyleRules
property only applies to Web Video Text Tracks (WebVTT). Setting a text style with the textStyleRules
property for local movie files (.mp4 or .mov) with subtitle tracks will have no effect on the text style.
Document Revision History
Date | Notes |
---|---|
2013-08-17 | New document that discusses customizing subtitles with AVPlayer |
Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-08-17