Skip to content

Instantly share code, notes, and snippets.

@voipnorm
Created August 3, 2018 15:48
var TpXapi = require( "./utils/endpoint");
const codecs = ['10.10.10.116'];
const videoArray = [];
codecs.forEach( function (ip) {
const endpoint = {
'password':"password",
'username':"admin",
'ipAddress':ip
};
const videoCodec = new TpXapi(endpoint);
videoArray.push(videoCodec);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment