Video Streaming through Zetta with jsmpeg and ffmpeg
Example of streaming mpeg1 video data through Zetta's binary streams using ffmpeg to capture the video from the servers connected camera. Uses jsmpeg on the browsers side to render the websocket video stream to a html5 canvas.
Install the npm module to your Zetta server.
npm install zetta-jsmpeg-camera
Install ffmpeg, https://www.ffmpeg.org/download.html
var zetta = ;var Camera = ;;
Locate the camera device and navigate to the api response, find the link titled
video. Copy the
hrefproperty on it, should look something like
Call the start transition on the camera.
Navigate to http://video-viewer.herokuapp.com, and input that in the
Websocket URLbox and submit. You should see yourself on video.