awslabs / green-boost

Build Full Stack Cloud Native Web Apps on AWS Fast
https://awslabs.github.io/green-boost/
Apache License 2.0
70 stars 8 forks source link

Streaming On-Demand Video Player Component/Construct #79

Open bestickley opened 2 years ago

bestickley commented 2 years ago

Construct will use S3, Elemental MediaConverter, and CloudFront following this article. Component can use something like this but built with AmplifyUI

bestickley commented 1 year ago

Potential CDK Construct API:

import { VideoStreamer } from "gboost-infra";

export class MyStack extends Stack {
  constructor(scope: Constructs, id: string) {
    new VideoStreamer(this, "VideoStreamer", { bucket: "bucket", key: "key", ... };
  }
}

Potential React Component API:

<VideoPlayer src="cloudfronturl" />