mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-30 23:18:12 +00:00
Compare commits
2 Commits
feat/tv-in
...
update-iss
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c4f766d6f | ||
|
|
358e00d8b7 |
2
.github/ISSUE_TEMPLATE/issue_report.yml
vendored
2
.github/ISSUE_TEMPLATE/issue_report.yml
vendored
@@ -77,6 +77,8 @@ body:
|
|||||||
label: Streamyfin Version
|
label: Streamyfin Version
|
||||||
description: What version of Streamyfin are you running?
|
description: What version of Streamyfin are you running?
|
||||||
options:
|
options:
|
||||||
|
- 0.52.0
|
||||||
|
- 0.51.0
|
||||||
- 0.47.1
|
- 0.47.1
|
||||||
- 0.30.2
|
- 0.30.2
|
||||||
- older
|
- older
|
||||||
|
|||||||
@@ -167,16 +167,17 @@ final class MPVLayerRenderer {
|
|||||||
// Use AVFoundation video output - required for PiP support
|
// Use AVFoundation video output - required for PiP support
|
||||||
checkError(mpv_set_option_string(handle, "vo", "avfoundation"))
|
checkError(mpv_set_option_string(handle, "vo", "avfoundation"))
|
||||||
|
|
||||||
|
// Enable composite OSD mode - renders subtitles directly onto video frames using GPU
|
||||||
|
// 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
|
||||||
|
checkError(mpv_set_option_string(handle, "avfoundation-composite-osd", "yes"))
|
||||||
|
|
||||||
// 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
|
||||||
// On device, use VideoToolbox with software fallback enabled
|
// On device, use VideoToolbox with software fallback enabled
|
||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
checkError(mpv_set_option_string(handle, "hwdec", "no"))
|
checkError(mpv_set_option_string(handle, "hwdec", "no"))
|
||||||
#else
|
#else
|
||||||
// Only enable composite OSD mode on real device (OSD is not supported in simulator).
|
|
||||||
// This renders subtitles directly onto video frames using the GPU, which is better for PiP since subtitles are baked into the video.
|
|
||||||
checkError(mpv_set_option_string(handle, "avfoundation-composite-osd", "yes"))
|
|
||||||
|
|
||||||
checkError(mpv_set_option_string(handle, "hwdec", "videotoolbox"))
|
checkError(mpv_set_option_string(handle, "hwdec", "videotoolbox"))
|
||||||
#endif
|
#endif
|
||||||
checkError(mpv_set_option_string(handle, "hwdec-codecs", "all"))
|
checkError(mpv_set_option_string(handle, "hwdec-codecs", "all"))
|
||||||
|
|||||||
Reference in New Issue
Block a user