Skip to content

API for sending AtemCmd to connected ATEM #1

@chxmbley

Description

@chxmbley

There doesn't appear to be a way to construct an AtemCmd and send it to the switcher as an AtemPacket.

Something like:

func (a *Atem) SendCmd(c *AtemCmd) error {
    // Hypothetical AtemCmd to AtemPacket conversion function
    p, err := packet.CreatePacketFromCmd(c)
    if err != nil {
        return err
    }
    a.writePacketQueue(p)
    return nil
}

Having this function would open the door for expanding the API to create functions that provide abstractions for switcher functionality, like atem.PerformCut() and atem.SetPreviewInput(video_source.Input1), that more closely resembles the official ATEM SDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions