Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@eyevinn/go-live
Advanced tools
The @eyevinn/go-live
NPM library provides the functionality to build an API layer on top of AWS Media Services to automate and simplify setting up a media pipeline for live using RTMP as the video signal contribution protocol.
RTMP -> MediaLive -> MediaPackage -> HLS
When creating a channel an AWS MediaLive channel is created with one RTMP input, one MediaPackage output group and an AWS MediaPackage channel with an HLS origin endpoint. The API returns the RTMP urls to stream to and the HLS origin endpoint to playback from (or have a CDN read from).
Install dependency
npm install --save @eyevinn/go-live
Example implementation
/**
* Reference implementation of @eyevinn/go-live API
*/
const { GoLiveApiServer } = require("@eyevinn/go-live");
const server = new GoLiveApiServer({
aws_access_key_id: <AWS_ACCESS_KEY_ID>,
aws_secret_access_key: <AWS_SECRET_ACCESS_KEY>,
role_arn: "arn:aws:iam::590877988961:role/AllowMediaLiveAccessRole"
});
try {
server.listen(process.env.PORT || 3000);
} catch (err) {
console.error(err);
process.exit(1);
}
Run it
node server.js
API docs (Swagger) is then available at /api/docs/
.
Method | Url | Description |
---|---|---|
POST | /api/v1/channels | Create and setup a channel |
GET | /api/v1/channels | List channels |
GET | /api/v1/channels/{channelId} | Describe a channel |
DELETE | /api/v1/channels/{channelId} | Remove a channel |
PUT | /api/v1/channels/{channelId} | Start or stop a channel |
Create a channel
curl -X 'POST' \
'http://localhost:3000/api/v1/channels' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"channel_id": "example1",
"whitelist": "0.0.0.0/0"
}'
{
"channel_id": "example1",
"rtmp_urls": [
"rtmp://13.51.185.200:1935/example1A",
"rtmp://13.51.225.136:1935/example1B"
],
"hls_urls": [
"https://e85dc9675199b759.mediapackage.eu-north-1.amazonaws.com/out/v1/84f7f98eb236463aa24a283282355e0d/index.m3u8"
]
}
Remove a channel
curl -X 'DELETE' \
'http://localhost:3000/api/v1/channels/example1' \
-H 'accept: application/json'
Eyevinn Technology is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor.
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 work@eyevinn.se!
FAQs
API layer on top of AWS Media Services to stream live
The npm package @eyevinn/go-live receives a total of 1 weekly downloads. As such, @eyevinn/go-live popularity was classified as not popular.
We found that @eyevinn/go-live demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.