Skip to main content
Developers can stream pre-recorded video into a Lens by connecting a Video File Reader data connector to the input data stream of a Lens. Prior to streaming video to a lens, a developer should first upload their video to the Archetype platform using the Files API. Upon uploading their video, the developer will receive a file_id that identifies that file throughout the Newton Platform. For example, the bash command below demonstrates how to upload a local MP4 video from your terminal to the Newton Platform using the Files API.
Upon successful upload, you will receive a JSON response similar to:
Like all data stream connectors, the video file reader can be identified and configured via the following stream type and stream config:
This can be passed to Newton as an event:

Parameters

You can pass the following parameters to the Video File Reader via the stream_config.