This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const OoyalaApi = require('ooyala-api'); | |
| const providers = [ | |
| { | |
| name: 'Account-1', | |
| key: 'API-KEY for Account-1', | |
| secret: 'API-SECRET for Account-1' | |
| }, | |
| { | |
| name: 'Account-2', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const OoyalaApi = require('ooyala-api'); | |
| const api = new OoyalaApi('API Key', 'API Secret', {concurrency: 6}); | |
| print(); | |
| function print() { | |
| return api.get('/v2/assets', {where: `asset_type='video'`, limit: 500}, {recursive: true}) | |
| .then(async items => { | |
| for (const asset of items) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import sys | |
| import subprocess | |
| import json | |
| args = sys.argv | |
| def deleteObject(endpoint, path, name): | |
| print ('deleteObject("{0}", "{1}", "{2}"))'.format(endpoint, path, name)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const hlx = require('hlx-lib'); | |
| const srcUrl = process.argv[2]; | |
| const {Transform} = require('stream'); | |
| class DurationChecker extends Transform { | |
| constructor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const {URL} = require('url'); | |
| const qs = require('querystring'); | |
| const ElementalApi = require('elemental-api'); | |
| const xmlJs = require('xml-js'); | |
| const HOST = process.argv[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| printInfo(process.argv[2]); | |
| function printInfo(base64String) { | |
| if (!base64String) { | |
| return console.log('Base64 string should be provided'); | |
| } | |
| const spliceInfo = parseSpliceInfo(Buffer.from(base64String, 'base64')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const path = require('path'); | |
| const {Writable, Transform} = require('stream'); | |
| const {writeData, type: {FLVFile, FLVHeader, FLVTag}} = require('@mediafish/flv'); | |
| const {createSimpleServer} = require('@mediafish/rtmp-server'); | |
| class Terminator extends Writable { | |
| constructor() { | |
| super({objectMode: true}); | |
| } |
OlderNewer