ocast-dongletv v1.0.1
Ocast-DongleTV-JS
Dongle TV Simulator
Usages
- develop and test your web application locally
- develop and test your mobile application with a sample web application
Prerequisites
install node package manager for Windows/Linux/MacOs
Download the Windows installer from the Nodes.js® web site. https://nodejs.org/download/
Run the installer (the .msi or .pkg file you downloaded in the previous step.)
Follow the prompts in the installer
Test Node. To see if Node is installed, open the Windows Command Prompt and type node -v
License
All code in this repository is covered by the Apache-2.0 license. See LICENSE file for copyright details.
Installation
$ npm install ocast-dongletv -gCheck installation:
$ d2r --help
$ d2r versionlocal usage
use only Chrome or Safari (pb with the lastest version of FireFox ) start the websocket server via:
$ export RECEIVER=
$ d2r startlaunch command @see ##commands
$ d2r load mp4remote usage (with stick)
start the stick and find ip adress by the mac adress in wireless network
$ arp -alaunch the App
$ export RECEIVER=STICK_IP
$ d2r startApp NAME_OF_MY_APPexample 'la clé TV' or 'VODe' dev app
$ d2r startApp Orange-OrangeTVReceiverProd-SDK2016launch command @see ##commands
$ d2r load mp4Commands and examples
Help is your friend
$ d2r --help
$ d2r load --help
$ d2r play --helpStart the server for localhost
$ d2r start allLoad a media
This is what you usually want to do, load and play a media via the receiver webapp.
$ d2r load --helpExamples
Load a video and autoplay
$ d2r load http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 videoLoad a video and:
- autoplay
- give a title
- gender
- logo
- title for next movie
- beginning of program
- end of program
- Beginning of next program
- title of next program
- Forbidden to youth < 16yo
- display product placement logo
- display audio hearing logo
- display audio description logo
$ d2r load http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 video/ -t "Un lapin très méchant" -a -l "http://upload.wikimedia.org/wikipedia/commons/c/c5/Big_buck_bunny_poster_big.jpg" -s "VOD" -T "Prochain film violent" -b "1421934514" -e "1421941714" -B "1421942134" -g "Film avec des méchants" -c 16 -r -h -dLoad a music and autoplay
$ d2r load http://datashat.net/music_for_programming_28-big_war.mp3 audioLoad an image
$ d2r load http://media.topito.com/wp-content/uploads/2011/06/132.jpg imageWorks with GIF also.
$ d2r load http://media0.giphy.com/media/17RaL7HOgI1CE/giphy.gif imagePlay
$ d2r playPause/Stop
$ d2r stopWith a position
$ d2r play -p 40Return to home page
$ d2r closeVolume control
$ d2r mute$ d2r unmute$ d2r volume 0.5Request status
$ d2r infoDocumentation
- Implementation is mainly in lib/*.js
- CLI interface is in cli.js