{"id":16650293,"url":"https://github.com/hfreire/watch-rtp-play","last_synced_at":"2025-08-31T03:44:17.175Z","repository":{"id":21166318,"uuid":"91491332","full_name":"hfreire/watch-rtp-play","owner":"hfreire","description":":tv: Watch and :radio: listen 🇵🇹 RTP Play without a :computer: browser","archived":false,"fork":false,"pushed_at":"2023-01-27T04:03:47.000Z","size":67229,"stargazers_count":17,"open_issues_count":23,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T22:41:28.369Z","etag":null,"topics":["docker","github-actions","hack","hls","portugal","radio","rtp","rtp-play","stream","streaming","television","tv"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hfreire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"hfreire","custom":"https://paypal.me/hfreire"}},"created_at":"2017-05-16T18:28:55.000Z","updated_at":"2023-05-09T14:17:15.000Z","dependencies_parsed_at":"2023-02-14T14:01:15.687Z","dependency_job_id":null,"html_url":"https://github.com/hfreire/watch-rtp-play","commit_stats":null,"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"purl":"pkg:github/hfreire/watch-rtp-play","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fwatch-rtp-play","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fwatch-rtp-play/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fwatch-rtp-play/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fwatch-rtp-play/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hfreire","download_url":"https://codeload.github.com/hfreire/watch-rtp-play/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fwatch-rtp-play/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272936317,"owners_count":25018160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","github-actions","hack","hls","portugal","radio","rtp","rtp-play","stream","streaming","television","tv"],"created_at":"2024-10-12T09:16:09.806Z","updated_at":"2025-08-31T03:44:17.141Z","avatar_url":"https://github.com/hfreire.png","language":"JavaScript","funding_links":["https://github.com/sponsors/hfreire","https://paypal.me/hfreire","https://paypal.me/hfreire/5"],"categories":[],"sub_categories":[],"readme":"# :tv: Watch and :radio: listen 🇵🇹 RTP Play without a :computer: browser\n\n[![](https://github.com/hfreire/watch-rtp-play/workflows/ci/badge.svg)](https://github.com/hfreire/watch-rtp-play/actions?workflow=ci)\n[![](https://github.com/hfreire/watch-rtp-play/workflows/cd/badge.svg)](https://github.com/hfreire/watch-rtp-play/actions?workflow=cd)\n[![Coverage Status](https://coveralls.io/repos/github/hfreire/watch-rtp-play/badge.svg?branch=master)](https://coveralls.io/github/hfreire/watch-rtp-play?branch=master)\n[![Known Vulnerabilities](https://snyk.io/test/github/hfreire/watch-rtp-play/badge.svg)](https://snyk.io/test/github/hfreire/watch-rtp-play)\n[![](https://img.shields.io/github/release/hfreire/watch-rtp-play.svg)](https://github.com/hfreire/watch-rtp-play/releases)\n[![Docker Stars](https://img.shields.io/docker/stars/hfreire/watch-rtp-play.svg)](https://hub.docker.com/r/hfreire/watch-rtp-play/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/hfreire/watch-rtp-play.svg)](https://hub.docker.com/r/hfreire/watch-rtp-play/)\n\n\u003e Watch 8 TV and listen 14 radio channels on any device that can play [HTTP Live Streaming](https://en.wikipedia.org/wiki/HTTP_Live_Streaming).\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"share/github/overview.gif\" width=\"620\"\u003e\u003c/p\u003e\n\n### Features\n* 8 TV channels :tv:\n* 14 radio channels :radio:\n* Uses [Request on Steroids](https://github.com/hfreire/request-on-steroids) to rate limit, retry and circuit break outgoing HTTP requests :white_check_mark:\n* Launch :rocket: inside a Docker container :whale: so you don't need to manage the dependencies :raised_hands: :white_check_mark:\n* Deploy on [AWS](https://aws.amazon.com) using an [Antifragile Infrastructure](https://github.com/antifragile-systems/antifragile-infrastructure) that allows you to easily monitor activity and scale :chart_with_upwards_trend: capacity :white_check_mark:\n\n### How to use\n\n#### Use it in your terminal\nUsing it in your terminal requires [Docker](https://www.docker.com) installed in your system.\n\n##### Run the Docker image in a container\nDetach from the container and expose port `4543`.\n```\ndocker run -d -p \"4543:3000\" hfreire/watch-rtp-play\n```\n\n##### Play RTP1 with ffmpeg player\n```\nffplay http://localhost:4543/playlist.m3u8?channel=rtp1\n```\n\n##### AirPlay RTP1 to Kodi\nUse [kodi.sh gist](https://gist.github.com/hfreire/5c558dc35ee842c32bda1656f87f302b) to stream RTP1 to a [Kodi](https://kodi.tv) media player.\n```\nkodi.sh localhost:36667 http://localhost:4543/playlist.m3u8?channel=rtp1\n```\n\n##### Cast RTP1 to Chromecast\nUse [castnow](https://github.com/xat/castnow) to stream RTP1 to a [Chromecast](https://www.google.com/chromecast) media player.\n```\ncastnow http://192.168.0.1:4543/playlist.m3u8?channel=rtp1\n```\n\n#### Available REST API endpoints\nSwagger documentation available at `http://localhost:4543/docs`.\n\n#### Available usage environment variables\nVariable | Description | Required | Default value\n:---:|:---:|:---:|:---:\nPORT | The port to be used by the HTTP server. | false | `3000`\nAPI_KEYS | The secret keys that should be used when securing endpoints. | false | `undefined`\nSO_TIMEOUT | TCP socket connection timeout. | false | `120000`\nBASE_PATH | Base path to be prefixed to all available endpoint paths. | false | `/`\nPING_PATH | Endpoint path for pinging app. | false | `/ping`\nHEALTHCHECK_PATH | Endpoint for checking app health. | false | `/healthcheck`\nLOG_LEVEL | The log level verbosity. | false | `info`\nENVIRONMENT | The environment the app is running on. | false | `undefined`\nROLLBAR_API_KEY | The server API key used to talk with Rollbar. | false | `undefined`\n\n### How to build\n##### Clone the GitHub repo\n```\ngit clone https://github.com/hfreire/watch-rtp-play.git\n```\n\n##### Change current directory\n```\ncd watch-rtp-play\n```\n\n##### Run the NPM script that will build the Docker image\n```\nnpm run build\n```\n\n### How to deploy\n\n#### Deploy it from your terminal\nDeploying it from your terminal requires [terraform](https://www.terraform.io) installed on your system and an [antifragile infrastructure](https://github.com/antifragile-systems/antifragile-infrastructure) setup available in your [AWS](https://aws.amazon.com) account.\n\n##### Clone the GitHub repo\n```\ngit clone https://github.com/hfreire/watch-rtp-play.git\n```\n\n##### Change current directory\n```\ncd watch-rtp-play\n```\n\n##### Run the NPM script that will deploy all functions\n```\nnpm run deploy\n```\n\n#### Available deployment environment variables\nVariable | Description | Required | Default value\n:---:|:---:|:---:|:---:\nVERSION | The version of the app. | false | `latest`\nANTIFRAGILE_STATE_AWS_REGION | The AWS region used for the antifragile state . | false | `undefined`\nANTIFRAGILE_STATE_AWS_S3_BUCKET | The AWS S3 bucket used for the antifragile state. | false | `undefined`\nANTIFRAGILE_STATE_AWS_DYNAMODB_TABLE | The AWS DynamoDB table used for the antifragile state. | false | `undefined`\nANTIFRAGILE_INFRASTRUCTURE_DOMAIN_NAME | The domain used for the antifragile infrastructure. | true | `undefined`\n\n### How to contribute\nYou can contribute either with code (e.g., new features, bug fixes and documentation) or by [donating 5 EUR](https://paypal.me/hfreire/5). You can read the [contributing guidelines](CONTRIBUTING.md) for instructions on how to contribute with code.\n\nAll donation proceedings will go to the [Sverige för UNHCR](https://sverigeforunhcr.se), a swedish partner of the [UNHCR - The UN Refugee Agency](http://www.unhcr.org), a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.\n\n### License\nRead the [license](./LICENSE.md) for permissions and limitations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfreire%2Fwatch-rtp-play","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhfreire%2Fwatch-rtp-play","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfreire%2Fwatch-rtp-play/lists"}