Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/alephcom/streamingcdn

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alephcom/streamingcdn

  • v0.0.0-20201130103757-f64d7801e959
  • Source
  • Go
  • Socket score

Version published
Created
Source

This server accepts video and audio via webrtc and converts them in Adaptive HLS

This project is in Progress(ui,cdn integration), Webrtc -> HLS part is Complete.

Steps for running this Server (I recommend using local-testing branch)

Steps to follow for using this project
  1. Install or upgrade Golang ver. 1.15 or above
  2. Install or upgrade Ffmpeg ver. 4.3.1-5(available in Debian Sid) and windows ffmpeg v4.3
  3. Download the project using Git command git clone https://github.com/mohit810/streamingcdn
  4. To start the server open the new folder created by Git and use the command go run main.go (Use terminal for running the server)
  • Congratulations!! Now the server is up and running.
  • As a starting point for testing you can use the Web UI

Current State

  1. Users can connect via POST request and start streaming(1.5Mbps speed is hardcoded for the stream).
  2. The Server recieves the stream and converts it into HLS.

Currently in Development

  1. Integrating FFmpeg.(Completed for now, further optimization will be done later)
  2. Allowing multiple users to connect and start broadcasting.(not in priority, at this stage.)
  3. CDN Integration ( Post UI development)
  4. Front-end UI Development in android, web, ios. (Current priority is android)

Final Goal

To receive the broadcast, Convert it into hls in various quality then push those to cdn to serve to the User.

Before using this solution you should set-up pion/webrtc/v3 (Go Modules are mandatory for using Pion WebRTC. So make sure you set export GO111MODULE=on, and explicitly specify /v3 when importing.).

POST API used by the broadcaster for connecting to the server

{ "sdp":"", "streamKey":"" }

  • Playlists and all the .ts files are served at /watch/streamkey/ (here streamKey is the string that the broadcaster sends in the POST request when connecting to the server)

Big Thanks to the following

FAQs

Package last updated on 30 Nov 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc