DEV Community

Discussion on: Building a Serverless Live-streaming Platform with React & AWS

Collapse
 
stefanmajiros profile image
Stefan Majiros

Folks, who are using React Native,

if you need to stream videos, without "OBS" directly from mobile device, you can try this library: github.com/NodeMedia/react-native-...

Its "API" looks like this:

NodeCameraView
style=height: 400
ref=(vb) => this.vb = vb
outputUrl = "rtmp://192.168.0.10/live/stream" ---> maybe AWS URL here ??
camera= cameraId: 1, cameraFrontMirror: true
audio= bitrate: 32000, profile: 1, samplerate: 44100
video= preset: 12, bitrate: 400000, profile: 1, fps: 15, videoFrontMirror: false
autopreview=true

After taking look at inputs formats at docs.aws.amazon.com/medialive/late... and
docs.aws.amazon.com/medialive/late...

I guess it should work.

***I removed the brackets ({,}) from the code because I could not submit comment with them - sorry.