Skip to content

SwiftUI video player

Compare
Choose a tag to compare
@swiftuiux swiftuiux released this 09 Jan 08:59
· 179 commits to main since this release

Release Notes: Subtitles Feature

Here’s everything you need to know about the feature:


🎯 Settings

  • Subtitles File Support
    You can now merge subtitles into your video using a WebVTT (.vtt) file via the `Settings.
    • Provide the URL or local filename of the WebVTT file to integrate subtitles seamlessly.
    • Subtitles are processed through an AVMutableComposition approach, ensuring reliable integration.

📚 Example

Refer to the implementation in the example app file Video8.swift to understand how to utilize this functionality.


🔧 Command

  • subtitles(String?)
    • Use this command to set subtitles to a specific language or disable them entirely.
    • Pass a language code (e.g., "en" for English) to set subtitles.
    • Pass nil to turn subtitles off.