{"id":29511773,"url":"https://github.com/pinkfish/flutter_rtmppublisher","last_synced_at":"2025-07-16T11:02:26.072Z","repository":{"id":44098411,"uuid":"258865908","full_name":"pinkfish/flutter_rtmppublisher","owner":"pinkfish","description":"Publisher to rtmp using the camera plugin as a basis to do all the basic camera/record management.","archived":false,"fork":false,"pushed_at":"2023-04-10T23:07:20.000Z","size":377,"stargazers_count":95,"open_issues_count":56,"forks_count":122,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-06-20T19:27:26.914Z","etag":null,"topics":["android","camera-plugin","flutter","flutter-plugin","ios","rtmp-streaming"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinkfish.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-25T20:17:45.000Z","updated_at":"2023-11-13T04:41:48.000Z","dependencies_parsed_at":"2024-06-20T19:03:54.764Z","dependency_job_id":"1b066f07-b75c-42e8-be1e-5a3fb45430d7","html_url":"https://github.com/pinkfish/flutter_rtmppublisher","commit_stats":{"total_commits":122,"total_committers":7,"mean_commits":"17.428571428571427","dds":0.4672131147540983,"last_synced_commit":"e94bb88f5a6a23ebb231e6445efea37f9cb75741"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/pinkfish/flutter_rtmppublisher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_rtmppublisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_rtmppublisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_rtmppublisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_rtmppublisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinkfish","download_url":"https://codeload.github.com/pinkfish/flutter_rtmppublisher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_rtmppublisher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265504792,"owners_count":23778365,"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":["android","camera-plugin","flutter","flutter-plugin","ios","rtmp-streaming"],"created_at":"2025-07-16T11:01:24.628Z","updated_at":"2025-07-16T11:02:25.968Z","avatar_url":"https://github.com/pinkfish.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rtmppublisher\n\nRTMP streaming and camera plugin.\n\n## Getting Started\n\nThis plugin is an extension of the flutter \n[camera plugin](https://pub.dev/packages/camera) to add in\nrtmp streaming as part of the system.  It works on android and iOS\n(but not web).\n\nThis means the API Is exactly the same as the camera and \ninstallation requirements are the same.  The difference exists in an extra API that is startStreaming(URL), it takes an RTMP\nURL and starts streaming to that specific URL.\n\nFor android I use [rtmp-rtsp-stream-client-java](https://github.com/pedroSG94/rtmp-rtsp-stream-client-java) \nand for iOS I use \n[HaishinKit.swift](https://github.com/shogo4405/HaishinKit.swift)\n   \n## Features:\n\n* Display live camera preview in a widget.\n* Snapshots can be captured and saved to a file.\n* Record video.\n* Add access to the image stream from Dart.\n\n## Installation\n\nFirst, add `camera` as a [dependency in your pubspec.yaml file](https://flutter.io/using-packages/).\n\n### iOS\n\nAdd two rows to the `ios/Runner/Info.plist`:\n\n* one with the key `Privacy - Camera Usage Description` and a usage description.\n* and one with the key `Privacy - Microphone Usage Description` and a usage description.\n\nOr in text format add the key:\n\n```xml\n\u003ckey\u003eNSCameraUsageDescription\u003c/key\u003e\n\u003cstring\u003eCan I use the camera please?\u003c/string\u003e\n\u003ckey\u003eNSMicrophoneUsageDescription\u003c/key\u003e\n\u003cstring\u003eCan I use the mic please?\u003c/string\u003e\n```\n\n### Android\n\nChange the minimum Android sdk version to 21 (or higher) in your `android/app/build.gradle` file.\n\n```\nminSdkVersion 21\n```\n\nNeed to add in a section to the packaging options to exclude a file, or gradle will error on building.\n\n```\npackagingOptions {\n   exclude 'project.clj'\n}\n```\n\n### Example\n\nHere is a small example flutter app displaying a full screen camera preview.\n\n```dart\nimport 'dart:async';\nimport 'package:flutter/material.dart';\nimport 'package:camera/camera.dart';\n\nList\u003cCameraDescription\u003e cameras;\n\nFuture\u003cvoid\u003e main() async {\n  cameras = await availableCameras();\n  runApp(CameraApp());\n}\n\nclass CameraApp extends StatefulWidget {\n  @override\n  _CameraAppState createState() =\u003e _CameraAppState();\n}\n\nclass _CameraAppState extends State\u003cCameraApp\u003e {\n  CameraController controller;\n\n  @override\n  void initState() {\n    super.initState();\n    controller = CameraController(cameras[0], ResolutionPreset.medium);\n    controller.initialize().then((_) {\n      if (!mounted) {\n        return;\n      }\n      setState(() {});\n    });\n  }\n\n  @override\n  void dispose() {\n    controller?.dispose();\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    if (!controller.value.isInitialized) {\n      return Container();\n    }\n    return AspectRatio(\n        aspectRatio:\n        controller.value.aspectRatio,\n        child: CameraPreview(controller));\n  }\n}\n```\n\nA more complete example of doing rtmp streaming is in the\n[example code](https://github.com/pinkfish/flutter_rtmppublisher/tree/master/example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinkfish%2Fflutter_rtmppublisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinkfish%2Fflutter_rtmppublisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinkfish%2Fflutter_rtmppublisher/lists"}