{"id":19233777,"url":"https://github.com/ossrs/srs-rn","last_synced_at":"2026-06-14T18:36:04.822Z","repository":{"id":232937268,"uuid":"785579698","full_name":"ossrs/srs-rn","owner":"ossrs","description":"Example for React Native streaming.","archived":false,"fork":false,"pushed_at":"2024-04-12T12:04:07.000Z","size":526,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T00:44:38.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ossrs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-12T07:10:13.000Z","updated_at":"2024-04-12T13:14:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"32a8fc01-19a2-451d-b791-28ad7acd43ae","html_url":"https://github.com/ossrs/srs-rn","commit_stats":null,"previous_names":["ossrs/srs-rn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossrs%2Fsrs-rn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossrs%2Fsrs-rn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossrs%2Fsrs-rn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossrs%2Fsrs-rn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ossrs","download_url":"https://codeload.github.com/ossrs/srs-rn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240310874,"owners_count":19781341,"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":[],"created_at":"2024-11-09T16:11:51.252Z","updated_at":"2026-06-14T18:35:59.801Z","avatar_url":"https://github.com/ossrs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# srs-rn\n\nExample for https://github.com/react-native-webrtc/react-native-webrtc\n\n## Prerequisites\n\nYou must have a WHIP service, you can build one by following tutorial \n[Effortlessly Create a Public Internet WHIP Service for OBS: A Comprehensive Guide to Sub-Second Streaming](https://blog.ossrs.io/effortlessly-create-a-public-internet-whip-service-for-obs-a-guide-for-sub-second-streaming-bb19c2a3bb7a)\n\nFor more information about WebRTC streaming, WHIP, and WHEP, please read\n[WebRTC Streaming](https://ossrs.io/lts/en-us/docs/v5/doc/webrtc#http-api)\n\n## Usage: WHIPPublisher for iOS\n\nMake sure you have completed the [React Native - Setting up the development environment](https://reactnative.dev/docs/environment-setup?guide=native) \ninstructions till `Creating a new application` step, before proceeding.\n\nClone code and change to directory:\n\n```bash\ngit clone https://github.com/ossrs/srs-rn.git\ncd srs-rn/WHIPPublisher\n```\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nInstall pods for iOS:\n\n```bash\npod install --project-directory=ios\n```\n\nOpen the `ios/WHIPPublisher.xcworkspace` and setup the development team by `Signing \u0026 Capabilities \u003e Team`:\n\n```bash\nopen ios/WHIPPublisher.xcworkspace\n```\n\nStart application:\n\n```bash\nnpm start ios\n```\n\nPress `i` to run on iOS. Click the `Start` button, which publish stream via [WHIP](https://ossrs.io/lts/en-us/docs/v5/doc/webrtc#http-api)\nand view stream by browser via WHEP:\n\n* WHIP: `http://192.168.1.100:1985/rtc/v1/whip/?app=live\u0026stream=livestream`\n* WHEP: [http://192.168.1.100:1985/rtc/v1/whep/?app=live\u0026stream=livestream](http://192.168.1.100:8080/players/whep.html)\n\n\u003e Note: Please change the IP address `192.168.1.100` to your own WebRTC service IP address.\n\nYou can also use other WHEP player to view the steam.\n\n\u003cimg width=\"360\" alt=\"rn-whip\" src=\"https://github.com/ossrs/srs-rn/assets/2777660/4ce1b19a-ab7f-4234-87cd-a59efac0802b\"\u003e\n\n\u003e Note: For WHEP player, the application requires permission `NSCameraUsageDescription` and `NSMicrophoneUsageDescription`.\n\n## Usage: WHEPPlayer for iOS\n\nMake sure you have completed the [React Native - Setting up the development environment](https://reactnative.dev/docs/environment-setup?guide=native)\ninstructions till `Creating a new application` step, before proceeding.\n\nClone code and change to directory:\n\n```bash\ngit clone https://github.com/ossrs/srs-rn.git\ncd srs-rn/WHEPPlayer\n```\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nInstall pods for iOS:\n\n```bash\npod install --project-directory=ios\n```\n\nOpen the `ios/WHEPPlayer.xcworkspace` and setup the development team by `Signing \u0026 Capabilities \u003e Team`:\n\n```bash\nopen ios/WHEPPlayer.xcworkspace\n```\n\nStart application:\n\n```bash\nnpm start ios\n```\n\nPress `i` to run on iOS. Publish stream by browser or OBS via WHIP. Click the `Start` button, which play stream via \n[WHEP](https://ossrs.io/lts/en-us/docs/v5/doc/webrtc#http-api):\n\n* WHIP: `http://192.168.1.100:1985/rtc/v1/whip/?app=live\u0026stream=livestream`\n* WHEP: `http://192.168.1.100:1985/rtc/v1/whep/?app=live\u0026stream=livestream`\n\n\u003e Note: Please change the IP address `192.168.1.100` to your own WebRTC service IP address.\n\nYou can also use other WHIP application to publish the steam.\n\n\u003cimg width=\"167\" alt=\"rn-whep\" src=\"https://github.com/ossrs/srs-rn/assets/2777660/8a978c25-a8df-4ea6-a66e-4ff3e6998611\"\u003e\n\n\u003e Note: For WHEP player, the application requires permission `NSMicrophoneUsageDescription`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossrs%2Fsrs-rn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossrs%2Fsrs-rn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossrs%2Fsrs-rn/lists"}