A Swift library for displaying SRT subtitles on iOS MPMoviePlayerController with easy integration.
MPMoviePlayerController-Subtitles is a Swift library that adds subtitle display capabilities to iOS's MPMoviePlayerController. It solves the problem of showing synchronized SRT subtitles on iOS video players, making videos more accessible and usable in multiple languages.
iOS developers building video playback features into their apps who need to support subtitles for accessibility or localization.
Developers choose this library because it provides a simple, focused solution for subtitle display without requiring complex video player customization or external dependencies.
Easy way to show SRT files on MPMoviePlayerController
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers a straightforward API to add subtitles to MPMoviePlayerController with minimal code, as demonstrated by the one-line method `addSubtitles().open(file:)` in the usage examples.
Allows basic styling adjustments like changing text color via the `subtitleLabel?.textColor` property, enhancing visibility without complex setup.
Includes a parser that can search SRT file contents independently of video playback, enabling features like subtitle lookup without a player, as added in version 2.2.
Supports multiple text encodings when loading SRT files, reducing issues with international character sets and non-UTF8 subtitles.
Built on MPMoviePlayerController, which Apple has deprecated in favor of AVPlayer, limiting long-term viability and compatibility with modern iOS development.
Only handles SRT subtitle files, excluding other common formats like WebVTT or TTML used in streaming and web applications.
Provides minimal customization (e.g., text color) but lacks advanced controls for font scaling, background styling, or synchronized animations, which may suffice for simple apps but not polished productions.
The README offers basic examples but lacks detailed guides, API references, or troubleshooting advice, which could hinder integration in complex scenarios or edge cases.