A Player is an entity which can play an audio URI
| 26 | |
| 27 | // A Player is an entity which can play an audio URI |
| 28 | type Player interface { |
| 29 | // Play plays the audio using the given playback ID and media URI |
| 30 | Play(string, ...string) (*PlaybackHandle, error) |
| 31 | |
| 32 | // StagePlay stages a `Play` operation |
| 33 | StagePlay(string, ...string) (*PlaybackHandle, error) |
| 34 | |
| 35 | // Subscribe subscribes the player to events |
| 36 | Subscribe(n ...string) Subscription |
| 37 | } |
| 38 | |
| 39 | // PlaybackData represents the state of a playback |
| 40 | type PlaybackData struct { |
no outgoing calls
no test coverage detected