Skip to content

Commit 7354b25

Browse files
author
Jeffrey Brignoli
committed
Merge branch 'main-origin' into improve-dash-manifest-parsing
# Conflicts: # src/manifests/handlers/dash/segment.ts
2 parents 6e67c95 + 88c9bfa commit 7354b25

File tree

13 files changed

+2126
-242
lines changed

13 files changed

+2126
-242
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM node:16
2-
1+
FROM node:gallium-alpine3.16
2+
EXPOSE 80 8000 8080
33
LABEL maintainer="Eyevinn Technology <[email protected]>"
44

55
WORKDIR /app
66
ADD . .
7-
RUN npm install
7+
RUN npm install
88
RUN npm run build
99
CMD ["npm", "start"]

Dockerfile.Lambda

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM public.ecr.aws/lambda/nodejs:16 as builder
2+
EXPOSE 80 443 8000
3+
LABEL maintainer="Eyevinn Technology <[email protected]>"
4+
5+
WORKDIR ${LAMBDA_TASK_ROOT}
6+
COPY . ${LAMBDA_TASK_ROOT}
7+
RUN npm install
8+
RUN npm run build
9+
10+
11+
WORKDIR ${LAMBDA_TASK_ROOT}/dist
12+
CMD ["dist/lambda.handler"]
13+

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ To try it out, go to your favourite HLS/MPEG-DASH video player such as `https://
6565
| `statusCode` | Replace the response for a specific segment request with a specified status code response |
6666
| `timeout` | Force a timeout for the response of a specific segment request |
6767

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

7081
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.
@@ -279,4 +290,4 @@ Eyevinn Technology is an independent consultant firm specialized in video and st
279290

280291
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.
281292

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

0 commit comments

Comments
 (0)