Package Exports
- @ndxlabs/ndx-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ndxlabs/ndx-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NDX is the industry's new standard for connecting information to movies and television. NDX improves the TV viewing experience by connecting audiences with more information about the actors and locations they see on screen.
Installation
Using either NPM or Yarn:
npm install @ndxlabs/ndx-js
yarn add @ndxlabs/ndx-js
UMD
<div id="root"></div>
<script crossorigin src="https://unpkg.com/@ndxlabs/ndx-js@2.0.0/dist/ndx.umd.min.js"></script>
<script>
ndx.configure({
apiKey: '__NDX_API_KEY__'
});
var tech = ndx.Tech('#root', '__NDX_VIDEO_ID__', {
list: {
orientation: ndx.VERTICAL,
style: {
position: 'absolute',
bottom: '2em',
left: '0',
padding: '0 2em',
}
}
});
tech.list.show();
tech.list.updateTime(5);
</script>
React
import React from 'react';
import { NDX, NDXTech } from '@ndxlabs/ndx-js';
import WatchPage from './containers/WatchPage';
import Player from './components/Player';
import Controls from './components/Controls';
function App(props) {
return (
<Provider>
<NDX apiKey={'__NDX_API_KEY__'} config={{}} />
<YourWatchPage { ...props }>
<Player>
<NDXTech videoId={'__NDX_VIDEO_ID__'} />
<Controls />
</Player>
</YouWatchPage
</Provider>
)
}