MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / Play

Method Play

client/bridge.go:131–147  ·  view source on GitHub ↗
(key *ari.Key, id string, uri string)

Source from the content-addressed store, hash-verified

129}
130
131func (b *bridge) Play(key *ari.Key, id string, uri string) (*ari.PlaybackHandle, error) {
132 if id == "" {
133 id = rid.New(rid.Playback)
134 }
135 k, err := b.c.createRequest(&proxy.Request{
136 Kind: "BridgePlay",
137 Key: key,
138 BridgePlay: &proxy.BridgePlay{
139 MediaURI: uri,
140 PlaybackID: id,
141 },
142 })
143 if err != nil {
144 return nil, err
145 }
146 return ari.NewPlaybackHandle(k.New(ari.PlaybackKey, id), b.c.Playback(), nil), nil
147}
148
149func (b *bridge) StagePlay(key *ari.Key, id string, uri string) (*ari.PlaybackHandle, error) {
150 if id == "" {

Callers 7

StagePlayMethod · 0.95
manageBridgeFunction · 0.45
appStartFunction · 0.45
TestBridgePlayFunction · 0.45
TestChannelPlayFunction · 0.45
bridgePlayMethod · 0.45
channelPlayMethod · 0.45

Calls 3

NewMethod · 0.80
createRequestMethod · 0.80
PlaybackMethod · 0.80

Tested by 2

TestBridgePlayFunction · 0.36
TestChannelPlayFunction · 0.36