Open royial opened 7 months ago
Hi. Yes, you're absolutely right, native tvOS player doesn't work in Simulators. I even did a workaround for this here https://github.com/mikehouse/Apple-TV-Player/commit/a5bfa4ec96132c7e183e45df8773548fad08e3dc, but later removed it. You can freely do the same thing. Thank you for feedback!
Hi again - I also tested it on Apple TV 4K and getting the following error when trying to watch the stream:
When I did on the apple tv:
RAM Stats: use: 1.91 GB, free: 1.84 GB, total: 3.75 GB
CPU load: 7%
set channel to play using native player from #REMOVED_THE_LINK#
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"
Will attempt to recover by breaking constraint
I added a playlist to the app. The only player who worked with my list is VLC but VLC doesn't support HLG (HDR). I tried to change to the Native player and it's not loading any stream. Any idea?
Based on the logs - RAM and CPU are fine
This is what I saw in the debug window when I tested in the simulator:
set channel to play using native player from #REMOVED_THE_LINK# nw_protocol_get_quic_image_block_invoke dlopen libquic failed: dlopen(/usr/lib/libquic.dylib, 0x0005): tried: Library/Developer/Xcode/DerivedData/Apple-TV-Player-chslmibzqaccrrahnibbirlybjqs/Build/Products/Debug-appletvsimulator/libquic.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/tvOS_21K364/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS 17.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/libquic.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/tvOS_21K364/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS 17.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libquic.dylib' (no such file), '/usr/lib/libquic.dylib' (no such file, not in dyld cache) Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "= 217 (active)>",
"<NSLayoutConstraint:0x60000217c280 H:|-(>=95)-[UIStackView:0x10332c6f0] (active, names: '|':UIView:0x10332dc30 )>",
"<NSLayoutConstraint:0x60000217c2d0 UIStackView:0x10332c6f0.trailing == UIView:0x10332dc30.trailing - 95 (active)>",
"<NSLayoutConstraint:0x60000217c410 H:|-(0)-[UIView:0x10332dc30] (active, names: '|':_AVFocusContainerView:0x1032535d0 )>",
"<NSLayoutConstraint:0x60000217c460 UIView:0x10332dc30.trailing == _AVFocusContainerView:0x1032535d0.trailing (active)>",
"<NSLayoutConstraint:0x60000217d860 '_UITemporaryLayoutWidth' _AVFocusContainerView:0x1032535d0.width == 0 (active)>"
)
Will attempt to recover by breaking constraint