MCPcopy Index your code
hub / github.com/CyCoreSystems/ari / Player

Interface Player

playback.go:28–37  ·  view source on GitHub ↗

A Player is an entity which can play an audio URI

Source from the content-addressed store, hash-verified

26
27// A Player is an entity which can play an audio URI
28type 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
40type PlaybackData struct {

Callers 1

SubscribeMethod · 0.65

Implementers 10

BridgeHandlebridge.go
ChannelHandlechannel.go
Bridgeclient/arimocks/Bridge.go
Bridge_Expecterclient/arimocks/Bridge.go
Channelclient/arimocks/Channel.go
Channel_Expecterclient/arimocks/Channel.go
Playerclient/arimocks/Player.go
Player_Expecterclient/arimocks/Player.go
Bridgeclient/native/bridge.go
Channelclient/native/channel.go

Calls

no outgoing calls

Tested by

no test coverage detected