Skip to content

SnapMobileIO/SnapJS-AWS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapMobile-Aws

Usage

Include this private module by adding the following under dependencies in package.json, and run npm install.

"snapjs-aws": "git+ssh://@github.com/SnapMobileIO/SnapJS-AWS.git",

To configure, add the following to routes.js:

import { router as awsRouter, awsHelper as awsHelper } from 'snapjs-aws';
app.use('/api/aws/', awsRouter);

Updating

Make any changes in /src.

Once changes are completed, run gulp dist to process JavaScript files and add to /dist.

large uploads

version 0.3.12 adds the ability to get a signature for a direct browser upload. You need two new variables in your env file AWS_S3_VIDEO_OVERSIZED_PREFIX this is the prefix where the file will be uploaded to AWS_REGION this is the region of the aws bucket. TRANSCODED_PREFIX is for the createMediaConvertJob helper function

AWS mediaConvert

We added a helper function that takes the JSON for a job and the object in which the video lives. This function expects that the field is named video

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published