cxfksword / MPVKit

mpv library for iOS, macOS, tvOS applications
GNU General Public License v3.0
71 stars 19 forks source link

how to listen to events? tvOS #7

Closed zmartell closed 5 months ago

zmartell commented 9 months ago

Hi there,

How can I listen to mpv events and react on it? I tried copying from the MacOS code but it doesn't support AppKit.

Was hoping to set up a listener to react on stopped events.

cxfksword commented 9 months ago

You can refer to the yattee project: https://github.com/yattee/yattee/blob/main/Model/Player/Backends/MPVClient.swift#L115