Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.29 KB

File metadata and controls

32 lines (21 loc) · 1.29 KB

DroneEmployee video streaming support

The aim of this is a spawn streamer (the executable that stream video) according to smart contract logic. The code works with Streaming.sol.

For deploying smart contracts you can use Aira deploy script

The streamer is any bynary with two args:

  • video device (e.g. /dev/video0)
  • stream identifier (256bit hex, e.g. 4f66e...)

Sample video streamer: bin/streamer_example.py

Usage

$ ./bin/streamd.sh              
Usage: /usr/bin/node ./scripts/streamd.js -c [CONTRACT_ADDRESS] -e [STREAMING_BINARY]

Options:
    --rpc  Web3 RPC provider                        [default: "http://localhost:8545"]
    -d     Video device to streaming                [default: "/dev/video0"]
    -c     Streaming contract address               [required]
    -e     Shell command to start streaming daemon  [required]

Usage example on Youtube

DroneEmployee video streaming Usage example on Youtube