Skip to content
OCast controller (based on node.js) to interact with an OCast client
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.jscsrc
.jshintrc
.travis.yml
LICENSE
LICENSE.md
README.md
gulpfile.js
index.js
package-lock.json
package.json

README.md

ocast-dongle-controller

The ocast-dongle-controller is a helper tool to check and test communication and cast with devices compatible with OCast SDK.

It can be used to:

  • perform devices search and application launch using DIAL protocol
  • send commands to devices

This tool can also be used to test receiver web applications running on desktop device and reachable through Dongle TV simulator.

Prerequisites

Nodes.js®


License

All code in this repository is covered by the Apache-2.0 license. See LICENSE file for copyright details.

Installation

npm install -g

Check installation:

    ocastc --help
    ocastc version

Edit constant.js to setup your configuration such as the dongle (or simulator) IP address.

The dongle IP address can also be setup in your environment variables:

export DONGLE_IPADDRESS=<dongle_ip_address>


Commands and examples (see index.js)

Launch application

ocastc launchApp <appId>

Stop application

ocastc stopApp <appId>

Search Dial TV Receivers

ocastc search

Load a video and autoplay

ocastc load http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 video

Other examples

    ocastc load mp4
    ocastc test smooth
    ocastc pause
    ocastc volume 0.4
    ocastc listen
    ocastc close
You can’t perform that action at this time.