Documentation ¶
Overview ¶
Package amcp implements the Advanced Media Control Protocol as defined here: https://github.com/CasparCG/help/wiki/AMCP-Protocol.
Example ¶
package main import ( "log" "github.com/sean-callahan/amcp" ) func main() { // Connect to the remote AMCP server. c, err := amcp.Dial("127.0.0.1:5250") if err != nil { log.Fatal(err) } defer c.Close() // Send the PLAY command to make channel 1 white. _, _, err = c.Do("PLAY", 1, "#FFFFFF") if err != nil { log.Fatal(err) } }
Output:
Index ¶
Examples ¶
Constants ¶
View Source
const ( ReturnInfo = 100 ReturnInfoLine = 101 ReturnOkMulti = 200 ReturnOkData = 201 ReturnOk = 202 ReturnClientError = 400 ReturnIllegalVideoChannel = 401 ReturnParameterMissing = 402 ReturnIllegalParameter = 403 ReturnMediaNotFound = 404 ReturnServerError = 500 ReturnServerErrorCommand = 501 ReturnMediaUnreachable = 502 ReturnAccessError = 503 )
Return codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.