illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.98k stars 1.52k forks source link

Deploy Media Server to AWS EC2 Instance. #206

Open Royalone94 opened 5 years ago

Royalone94 commented 5 years ago

I had tested Media Server on Localhost RTMP Stream with React Native and Native Android apps, It worked great and no issues found. When I upload server to AWS EC2 instance, apps can't connect, push or play streams. I would like to how to deal this. Thanks.

n-3-0 commented 5 years ago

Make sure you are connecting to the public IP or public DNS address, and that the instance's security groups are setup to allow the I/O ports (defaults are 8000 for read, 1935 for write).

HZCTony commented 4 years ago

Make sure you are connecting to the public IP or public DNS address, and that the instance's security groups are setup to allow the I/O ports (defaults are 8000 for read, 1935 for write).

Nice correct solution! However, I would like to try to deploy Node-media-server to EC2, and make it push my live webcam video to cloudfront. is it possible? it's about relay or something else?

rehamkhawaja commented 4 years ago

@HZCTony any answer to make it push to cloudfront?