mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
21 lines
306 B
Go
21 lines
306 B
Go
package client
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/datarhei/core/v16/http/api"
|
|
)
|
|
|
|
func (r *restclient) RTMPChannels() (api.RTMPChannel, error) {
|
|
var m api.RTMPChannel
|
|
|
|
data, err := r.call("GET", "rtmp", "", nil)
|
|
if err != nil {
|
|
return m, err
|
|
}
|
|
|
|
err = json.Unmarshal(data, &m)
|
|
|
|
return m, err
|
|
}
|