{"id":15910607,"url":"https://github.com/thibaultbee/srtdroid","last_synced_at":"2025-04-05T06:04:08.802Z","repository":{"id":37007653,"uuid":"210187413","full_name":"ThibaultBee/srtdroid","owner":"ThibaultBee","description":"Secure Reliable Transport (SRT) Protocol for Android","archived":false,"fork":false,"pushed_at":"2025-01-10T14:38:49.000Z","size":2819,"stargazers_count":112,"open_issues_count":0,"forks_count":35,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T05:06:27.226Z","etag":null,"topics":["android","c","cmake","crypto","kotlin","live-streaming","native","openssl","sendmsg","srt","streaming","streaming-api"],"latest_commit_sha":null,"homepage":"https://ThibaultBee.github.io/srtdroid","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThibaultBee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"ThibaultBee"}},"created_at":"2019-09-22T17:30:48.000Z","updated_at":"2025-02-26T07:41:56.000Z","dependencies_parsed_at":"2024-06-25T12:09:42.297Z","dependency_job_id":"1bf811f1-07b0-4557-9af3-e77c18d9f2e6","html_url":"https://github.com/ThibaultBee/srtdroid","commit_stats":{"total_commits":310,"total_committers":3,"mean_commits":"103.33333333333333","dds":0.06451612903225812,"last_synced_commit":"c11dd64b0642b3074ca9620635afea109c10bd70"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThibaultBee%2Fsrtdroid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThibaultBee%2Fsrtdroid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThibaultBee%2Fsrtdroid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThibaultBee%2Fsrtdroid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThibaultBee","download_url":"https://codeload.github.com/ThibaultBee/srtdroid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294516,"owners_count":20915340,"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","c","cmake","crypto","kotlin","live-streaming","native","openssl","sendmsg","srt","streaming","streaming-api"],"created_at":"2024-10-06T15:10:54.787Z","updated_at":"2025-04-05T06:04:08.784Z","avatar_url":"https://github.com/ThibaultBee.png","language":"Kotlin","readme":"# srtdroid: Secure Reliable Transport (SRT) Protocol for Android\n\nLow level API for SRT library on Android. SRT is an open source transport technology that optimizes\nstreaming performance across unpredictable networks. More information\non [SRT](https://github.com/Haivision/srt).\n\nsrtdroid is a binder/wrapper for Android built on [SRT](https://github.com/Haivision/srt). It is a\nnot a new implementation of SRT protocol.\n\nFor a **live streaming SDK** based on [SRT](https://github.com/Haivision/srt), go\nto [StreamPack](https://github.com/ThibaultBee/StreamPack).\n\n## Install\n\nGet srtdroid latest artifacts on MavenCentral.\n\n```gradle\ndependencies {\n    implementation 'io.github.thibaultbee.srtdroid:srtdroid-core:1.9.0'\n    // If you use Kotlin Coroutines, you can use srtdroid-ktx\n    implementation 'io.github.thibaultbee.srtdroid:srtdroid-ktx:1.9.0'\n}\n```\n\n## Sample\n\nsrtdroid comes with an [examples](https://github.com/ThibaultBee/srtdroid/tree/master/examples)\napplication. Examples are the srtdroid counterpart\nof [SRT examples folder](https://github.com/Haivision/srt/tree/master/examples).\n\nOn the server side, configure local IP to `0.0.0.0`. On the client side, configure remote IP to\nserver device IP. The port must be the same value for both.\n\n## API\n\nAs srtdroid is a simple wrapper, it provides a\nminimalist [API documentation](https://thibaultbee.github.io/srtdroid/dokka/lib). For an extensive\nSRT API documentation refers to the\nofficial [SRT API documentation](https://github.com/Haivision/srt/blob/master/docs/API.md).\n\n### Send/recv\n\nSrt `send`, `sendMsg` and `sendMsg` are called `send()` in srtdroid. Alternatively, you can use\nthe `OutputStream` API. Srt `recv`, `recvdMsg` are called `recv()` in srtdroid. Alternatively, you\ncan use the `InputStream` API.\n\n## Permissions\n\nTo use, `sendFile` and `recvFile`, you need to add `READ_EXTERNAL_STORAGE` (\nor [\n`READ_MEDIA_*`](https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions)\nif your app targets Android 13 or higher)\nand `WRITE_EXTERNAL_STORAGE` to your `AndroidManifest.xml`:\n\n```xml\n\n\u003cmanifest\u003e\n    \u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" /\u003e\n    \u003c!-- If your app targets Android \u003c 13 --\u003e\n    \u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n    \u003c!-- If your app targets Android \u003e= 13, READ_MEDIA_VIDEO and/or READ_MEDIA_IMAGES and/or READ_MEDIA_AUDIO --\u003e\n    \u003cuses-permission android:name=\"android.permission.READ_MEDIA_VIDEO\" /\u003e\n\u003c/manifest\u003e\n```\n\nThen, you have to request permissions at runtime.\n\n## Build\n\nsrtdroid downloads and builds [SRT](https://github.com/Haivision/srt)\nand [OpenSSL](https://www.openssl.org) (ssl and crypto) libraries. The first compilation will take a\nwhile.\n\n### Linux\n\nYou have to install `make`:\n\n```bash\nsudo apt-get install build-essential\n```\n\n### Windows\n\nsrtdroid does not build on Windows because OpenSSL is really tricky to compile on Windows.\n\n### macOS\n\nNot tested.\n\n## Licence\n\n    Copyright 2021 Thibault B.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":["https://github.com/sponsors/ThibaultBee"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaultbee%2Fsrtdroid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibaultbee%2Fsrtdroid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaultbee%2Fsrtdroid/lists"}