Skip to content

Custom Subtitles Renderer for AVPlayerLayer [Swift library already available] #1892

@DrHurt

Description

@DrHurt

This feature request respects the following points:

Platform

tvOS, iOS

Describe the feature you'd like to see

@JPKribs @LePips

As you already know, subtitles support in AVPlayer is limited & management via HLS is a nightmare.

Motivation:

The Jellyfin web client on Safari (AVPlayer) uses a custom renderer for subtitles that draws on top of AVPlayer.

Server already extracts and converts all subtitles ahead of time. Web client has separate controls drawn over AVPlayer to enable/disable & change subtitle tracks seamlesslessly. No need to mess with HLS or restart video playback.

The next chapter of Swiftfin?

Swift ASS Renderer is a free, open source library that renders ASS subtitles seamlessly on top of AVPlayerLayer and will be the perfect addition to Swiftfin.

This will initially provide ASS subtitles support for Swiftfin but can be expanded to support other formats.

A quick client-side text subtitles to ASS conversion (using ffmpeg) can also be employed allowing use of that library nearly unaltered with SRT (and many others) as well.

https://github.com/mihai8804858/swift-ass-renderer

Metadata

Metadata

Assignees

No one assigned

    Labels

    iOSImpacts iOS or iPadOSplaybackThis item is related to content playbacktvOSImpacts tvOS
    No fields configured for Feature.

    Projects

    Status

    Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions