Skip to content

Commit

Permalink
Merge branch 'main-origin' into improve-dash-manifest-parsing
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/manifests/handlers/dash/segment.ts
  • Loading branch information
Jeffrey Brignoli committed May 5, 2023
2 parents 6e67c95 + 88c9bfa commit 7354b25
Show file tree
Hide file tree
Showing 13 changed files with 2,126 additions and 242 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:16

FROM node:gallium-alpine3.16
EXPOSE 80 8000 8080
LABEL maintainer="Eyevinn Technology <[email protected]>"

WORKDIR /app
ADD . .
RUN npm install
RUN npm install
RUN npm run build
CMD ["npm", "start"]
13 changes: 13 additions & 0 deletions Dockerfile.Lambda
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM public.ecr.aws/lambda/nodejs:16 as builder
EXPOSE 80 443 8000
LABEL maintainer="Eyevinn Technology <[email protected]>"

WORKDIR ${LAMBDA_TASK_ROOT}
COPY . ${LAMBDA_TASK_ROOT}
RUN npm install
RUN npm run build


WORKDIR ${LAMBDA_TASK_ROOT}/dist
CMD ["dist/lambda.handler"]

13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ To try it out, go to your favourite HLS/MPEG-DASH video player such as `https://
| `statusCode` | Replace the response for a specific segment request with a specified status code response |
| `timeout` | Force a timeout for the response of a specific segment request |

### Load Manifest url params from AWS SSM parameter store instead
- Create a .env file at the root the of project
- fill it like this :
```
AWS_REGION="eu-central-1"
AWS_SSM_PARAM_KEY="/ChaosStreamProxy/Development/UrlParams"
LOAD_PARAMS_FROM_AWS_SSM=true
```
- on AWS SSM, create a parameter with name : <em>/ChaosStreamProxy/Development/UrlParams</em>
- add a value for corruptions, for example : <em>&statusCode=[{i:3,code:500},{i:4,code:500}]</em>

## Corruptions

Currently, the Chaos Stream Proxy supports 3 types of corruptions for HLS and MPEG-DASH streams. These corruptions may be used in combination with one another.
Expand Down Expand Up @@ -279,4 +290,4 @@ Eyevinn Technology is an independent consultant firm specialized in video and st

At Eyevinn, every software developer consultant has a dedicated budget reserved for open source development and contribution to the open source community. This give us room for innovation, team building and personal competence development. And also gives us as a company a way to contribute back to the open source community.

Want to know more about Eyevinn and how it is to work here? Contact us at [email protected]!
Want to know more about Eyevinn and how it is to work here? Contact us at [email protected]!
Loading

0 comments on commit 7354b25

Please sign in to comment.