mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-24 17:44:45 +01:00
Compare commits
1 Commits
renovate/a
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ce810c191 |
@@ -171,7 +171,11 @@ final class MPVLayerRenderer {
|
|||||||
// Enable composite OSD mode - renders subtitles directly onto video frames using GPU
|
// Enable composite OSD mode - renders subtitles directly onto video frames using GPU
|
||||||
// This is better for PiP as subtitles are baked into the video
|
// This is better for PiP as subtitles are baked into the video
|
||||||
// NOTE: Must be set BEFORE the #if targetEnvironment check or tvOS will freeze on player exit
|
// NOTE: Must be set BEFORE the #if targetEnvironment check or tvOS will freeze on player exit
|
||||||
|
#if targetEnvironment(simulator)
|
||||||
|
checkError(mpv_set_option_string(handle, "avfoundation-composite-osd", "no"))
|
||||||
|
#else
|
||||||
checkError(mpv_set_option_string(handle, "avfoundation-composite-osd", "yes"))
|
checkError(mpv_set_option_string(handle, "avfoundation-composite-osd", "yes"))
|
||||||
|
#endif
|
||||||
|
|
||||||
// Hardware decoding with VideoToolbox
|
// Hardware decoding with VideoToolbox
|
||||||
// On simulator, use software decoding since VideoToolbox is not available
|
// On simulator, use software decoding since VideoToolbox is not available
|
||||||
|
|||||||
Reference in New Issue
Block a user