Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atem is always only loading clips #22

Open
Everton747 opened this issue Sep 21, 2021 · 2 comments
Open

Atem is always only loading clips #22

Everton747 opened this issue Sep 21, 2021 · 2 comments

Comments

@Everton747
Copy link

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [x] question about how to use this project

  • Summary

  • Hi @baltedewit. In the atem software control, i only see it loading;

atem

Here we've an example of my function onClipsGet:

server.onClipsGet = async (cmd) => {
    console.log('cmd', cmd);

    const obj = {
        'clip count': '1',
        '1': 'clip 1',
    };

    return 205, 'clips info', obj;
}

Can you help me?

@mint-dewit
Copy link
Owner

Sorry for the late reply, you might have to implement the onDiskList callback as well for the atem to be happy

@SNRSE
Copy link
Contributor

SNRSE commented Mar 7, 2023

Hey, @Everton747 check the format of your response on clip info. It must be in a very specific format for the atem to be happy.
I just spent a bunch of time searching for an issue that ended up being a double space in clips get.
Here is what works for me :

this.server.onClipsGet = (cmd) => {
    var result = {
      'clip count': this.app.player.assets.length.toString()
    }
    let i = 1;
    this.app.player.assets.forEach(
      asset => {
        result[i] = " " + asset.name + " 00:00:00:00 "+ this.msToTime(asset.duration) ;
        i = i + 1;
      });
    return Promise.resolve(result)
  };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants