Giter Site home page Giter Site logo

dolbyio-samples / streaming-webhook-thumbnails Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 98.59 MB

Sample code for receiving webhook callback for Real-time Streaming events

Home Page: https://dolby.io/blog/store-thumbnails-from-your-live-stream-using-aws-lambda-and-s3/

License: Creative Commons Zero v1.0 Universal

JavaScript 100.00%
webhooks aws-lambda aws-s3 aws-sam-cli blog

streaming-webhook-thumbnails's Introduction

Use Webhooks to Receive the Generated Thumbnails of the Ongoing Stream

Thumbnail Blog Post Image This repository includes three different sample code directories about how to receive and store generated thumbnail images from the ongoing stream. After you create a webhook on Dolby.io either using Dashboard or API, you can set the Webhook URL depending on your choice.

  • To create a token on your Dashboard go to https://streaming.dolby.io/#/tokens and click Create button. After you set the Basic settings, you need to enable Thumbnail Preview from Advanced settings.

Enable Thumbnails when Creating a Token

  • To create a webhook on your Dashboard go to https://streaming.dolby.io/#/webhooks and click Create button. You need to enable Thumbnail hooks and add your Webhook URL you either obtained using localhost with ngrok or an AWS service.

Enable Thumbnails when Creating a Webhook

  1. To store images locally, you can use your localhost address or ngrok.io to proxy the traffic to your local machine. It will give you a public facing URL for some amount of time and re-direct any traffic to that URL to your local machine. You can find how you can set it up in the README.md under the store-thumbnails-locally directory containing the sample code.
  2. To store images in an AWS S3 bucket using Lambda Function URL, navigate to aws-lambda-function-url directory. There's a detailed blog post about how you can set it up.
  3. Another option to use AWS is via SAM CLI. SAM CLI might be a better option if you want to develop bigger and more complex projects starting with a template. It allows you to edit the code from your editor and deploy it to Lambda, considering using the code editor in AWS Web Lambda Console doesn't provide the flexibility to edit the packages bigger than 3 MB. Go to aws-sam-thumbnails directory to see how you can create a Lambda Function and an API Gateway to receive and store the thumbnails using AWS SAM.

streaming-webhook-thumbnails's People

Contributors

fabienlavocat avatar j12y avatar neptunel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.