Skip to content

Latest commit

 

History

History

odc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@dlenroc/roku-odc · NPM Version

Client for runtime utilities

Installation

npm install @dlenroc/roku-odc

Usage

⚠️ inject(app) must be used to inject backend into your application

import { ODCExecutor, getRegistry } from '@dlenroc/roku-odc';

const ctx = new ODCExecutor({ address: 'http://<ip>:8061' });
const registry = await getRegistry(ctx);
console.log(registry);

Launch parameters

All of the above commands require the application to be up and running, but some of them can also be run using ECP during startup

await ecp.launch('dev', { odc_clear_registry: true });
await ecp.launch('dev', { odc_registry: /* state */ })
await ecp.launch('dev', { odc_channel_data: /* data */ })
await ecp.launch('dev', {
  odc_entry_point: 'channel' | 'screensaver' | 'screensaver-settings',
});