{"id":23817862,"url":"https://github.com/lsongdev/node-rtmp","last_synced_at":"2025-09-07T00:32:47.604Z","repository":{"id":48564914,"uuid":"143110882","full_name":"lsongdev/node-rtmp","owner":"lsongdev","description":"A Node.js implementation of RTMP Server","archived":false,"fork":false,"pushed_at":"2021-07-20T07:49:36.000Z","size":24,"stargazers_count":23,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-31T10:05:33.036Z","etag":null,"topics":["rtmp","rtmp-server","rtmp-stream"],"latest_commit_sha":null,"homepage":"https://npmjs.org/rtmp2","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsongdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-01T06:04:03.000Z","updated_at":"2024-11-24T23:04:51.000Z","dependencies_parsed_at":"2022-09-23T19:10:43.708Z","dependency_job_id":null,"html_url":"https://github.com/lsongdev/node-rtmp","commit_stats":null,"previous_names":["lsongdev/node-rtmp","song940/node-rtmp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-rtmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-rtmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-rtmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-rtmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/node-rtmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232158299,"owners_count":18480860,"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","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":["rtmp","rtmp-server","rtmp-stream"],"created_at":"2025-01-02T05:48:56.171Z","updated_at":"2025-01-02T05:48:56.868Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RTMP-Server\n\nA Node.js implementation of RTMP Server \n - Supports only RTMP protocol.\n - Supports only H.264 video and AAC audio.\n \n# Install\n\n```bash\nnpm install --save rtmp2\n```\n \n# Usage \n```js\nconst RTMP = require('rtmp2');\n\nconst rtmpServer = RTMP.createServer();\n\nrtmpServer.on('client', client =\u003e {\n  client.on('command', command =\u003e {\n  //  console.log(command.cmd, command);\n  });\n\n  client.on('connect', () =\u003e {\n     console.log('connect', client.app);\n  });\n  \n  client.on('play', ({ streamName }) =\u003e {\n    console.log('PLAY', streamName);\n  });\n  \n  client.on('publish', ({ streamName }) =\u003e {\n    console.log('PUBLISH', streamName);\n  });\n  \n  client.on('stop', () =\u003e {\n    console.log('client disconnected');\n  });\n});\n\nrtmpServer.listen(1935);\n```\n\nYou can now publish streams to `rtmp://localhost:1935/live/mytv` and use any unique stream key.\n\n```bash\n~$ ffmpeg -f avfoundation -i \"1\" -vcodec libx264 -f flv rtmp://localhost:1935/live/mytv\n```\n\nThe stream will then be available at `rtmp://localhost:1935/live/mytv`.\n\n# License\n\nThis project is under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnode-rtmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fnode-rtmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnode-rtmp/lists"}