Sign inSign up

hfreire/watch-rtp-play

By hfreire

โ€ขUpdated almost 5 years ago

๐Ÿ“บ Watch and ๐Ÿ“ป listen ๐Ÿ‡ต๐Ÿ‡น RTP Play without a ๐Ÿ’ป browser

Image
0

10K+

hfreire/watch-rtp-play repository overview

โ :tv: Watch and :radio: listen ๐Ÿ‡ต๐Ÿ‡น RTP Play without a :computer: browser

Build Status Coverage Status Docker Stars Docker Pulls

Watch 8 TV and listen 14 radio channels on any device that can play HTTP Live Streamingโ .

โ Features
  • 8 TV channels :tv:
  • 14 radio channels :radio:
  • Uses Request on Steroidsโ  to rate limit, retry and circuit break outgoing HTTP requests :white_check_mark:
  • Launch :rocket: inside a Docker container :whale: so you don't need to manage the dependencies :raised_hands: :white_check_mark:
  • Deploy on AWSโ  using an Antifragile Infrastructureโ  that allows you to easily monitor activity and scale :chart_with_upwards_trend: capacity :white_check_mark:
โ How to use
โ Use it in your terminal

Using it in your terminal requires Dockerโ  installed in your system.

โ Run the Docker image in a container

Detach from the container and expose port 4543.

docker run -d -p "4543:3000" hfreire/watch-rtp-play
โ Play RTP1 with ffmpeg player
ffplay http://localhost:4543/playlist.m3u8?channel=rtp1
โ AirPlay RTP1 to Kodi

Use kodi.sh gistโ  to stream RTP1 to a Kodiโ  media player.

kodi.sh localhost:36667 http://localhost:4543/playlist.m3u8?channel=rtp1
โ Cast RTP1 to Chromecast

Use castnowโ  to stream RTP1 to a Chromecastโ  media player.

castnow http://192.168.0.1:4543/playlist.m3u8?channel=rtp1
โ Available REST API endpoints

Swagger documentation available at http://localhost:4543/docs.

โ Available usage environment variables
VariableDescriptionRequiredDefault value
PORTThe port to be used by the HTTP server.false3000
API_KEYSThe secret keys that should be used when securing endpoints.falseundefined
SO_TIMEOUTTCP socket connection timeout.false120000
LOG_LEVELThe log level verbosity.falseinfo
ENVIRONMENTThe environment the app is running on.falseundefined
ROLLBAR_API_KEYThe server API key used to talk with Rollbar.falseundefined
โ How to build
โ Clone the GitHub repo
git clone https://github.com/hfreire/watch-rtp-play.git
โ Change current directory
cd watch-rtp-play
โ Run the NPM script that will build the Docker image
npm run build
โ How to deploy
โ Deploy it from your terminal

Deploying it from your terminal requires terraformโ  installed on your system and an antifragile infrastructureโ  setup available in your AWSโ  account.

โ Clone the GitHub repo
git clone https://github.com/hfreire/watch-rtp-play.git
โ Change current directory
cd watch-rtp-play
โ Run the NPM script that will deploy all functions
npm run deploy
โ Available deployment environment variables
VariableDescriptionRequiredDefault value
VERSIONThe version of the app.falselatest
ANTIFRAGILE_STATE_AWS_REGIONThe AWS region used for the antifragile state .falseundefined
ANTIFRAGILE_STATE_AWS_S3_BUCKETThe AWS S3 bucket used for the antifragile state.falseundefined
ANTIFRAGILE_STATE_AWS_DYNAMODB_TABLEThe AWS DynamoDB table used for the antifragile state.falseundefined
ANTIFRAGILE_INFRASTRUCTURE_DOMAIN_NAMEThe domain used for the antifragile infrastructure.trueundefined
โ How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EURโ . You can read the contributing guidelinesโ  for instructions on how to contribute with code.

All donation proceedings will go to the Sverige fรถr UNHCRโ , a swedish partner of the UNHCR - The UN Refugee Agencyโ , a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

โ License

Read the licenseโ  for permissions and limitations.

Tag summary

Content type

Image

Digest

Size

64 MB

Last updated

almost 5 years ago

docker pull hfreire/watch-rtp-play