@tizentv/tizen-tv-webapis
@tizentv/tizen-tv-webapis
package is for supporting Samsung TV Product API as commonjs
style.
Now we are supporting it for Typescript developers.
Please note that, In order to use this pacakge, @types/tizen-tv-webapis
is required.
Supported APIs
How to use
npm install @tizentv/tizen-tv-webapis
<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
const avinfo = require('@tizentv/tizen-tv-webapis');
const { getVersion, getDolbyDigitalCompMode, isHdrTvSupport } = avinfo;
getVersion();
npm install @tizentv/tizen-tv-webapis
npm install @types/tizen-tv-webapis
<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
import { avinfo } from '@tizentv/tizen-tv-webapis';
const { getVersion, getDolbyDigitalCompMode, isHdrTvSupport } = avinfo;
getVersion();
Samples
We offer two samples for common js and typescript.
Common js (webpack + babel-loader)
- Path :
/samples/commonjs
- How to Run
- Move to the path
- npm install
- npm run wits-init (To use WITs Live reload feature)
- npm run start
typescript (webpack + ts-loader)
- Path :
/samples/typescript
- How to Run
- Move to the path
- npm install
- npm run wits-init (To use WITs Live reload feature)
- npm run start