jellyfin / Swiftfin

Native Jellyfin Client for iOS and tvOS
Mozilla Public License 2.0
2.48k stars 271 forks source link

Does not report new state event on tvOS #770

Open zuohaot opened 1 year ago

zuohaot commented 1 year ago

Describe the bug

I am a Home Assistant user. I wish to turn on Movie scene when Jellyfin is opened. When playing media via apps like Prime Video and YouTube. I got this {"app_id":"com.google.ios.youtube","friendly_name":"Living Room Apple TV","supported_features":450487},"last_changed":"2023-05-09T05:52:50.186095+00:00","last_updated":"2023-05-09T05:52:50.186095+00:00"}

It seems that I can only get this type of event message when I turn on "native player" option in Swiftfin. I can not see whether my Apple TV is playing or paused when playing media through Swiftfin. Is that something can be improved? TIA!

Application version

1.0.1 (70)

Where did you install the app from?

App Store

Device information

Apple TV 4K

OS version

tvOS 16.4.1

Jellyfin server version

10.8.10

vilhalmer commented 5 months ago

It seems that the player doesn't register metadata or the fact that it's playing at all with the OS, so none of that state can make it to any integrations either. Even attempting to send play/pause has no effect. This also affects the remote speaker/TV control widget on other iOS devices, so fixing it would be more widely beneficial than just Home Assistant.

yanbreu commented 3 months ago

It looks like this is still a problem with latest TestFlight build 1.1(78). If I play a movie/tv show and put the add in background it still plays the audio but the OS (iOS and iPadOS) don’t recognize the playback.