{"id":43870609,"url":"https://github.com/videogorillas/live4api","last_synced_at":"2026-02-06T14:28:36.003Z","repository":{"id":57290401,"uuid":"76784606","full_name":"videogorillas/live4api","owner":"videogorillas","description":"LIVE4 Public API","archived":false,"fork":false,"pushed_at":"2018-06-27T13:15:44.000Z","size":410,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-09-26T17:59:50.830Z","etag":null,"topics":["awesomeness","bacon"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/videogorillas.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":"2016-12-18T13:27:52.000Z","updated_at":"2017-03-01T06:50:38.000Z","dependencies_parsed_at":"2022-09-02T06:22:31.230Z","dependency_job_id":null,"html_url":"https://github.com/videogorillas/live4api","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/videogorillas/live4api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videogorillas%2Flive4api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videogorillas%2Flive4api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videogorillas%2Flive4api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videogorillas%2Flive4api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videogorillas","download_url":"https://codeload.github.com/videogorillas/live4api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videogorillas%2Flive4api/sbom","scorecard":{"id":920740,"data":{"date":"2025-08-11","repo":{"name":"github.com/videogorillas/live4api","commit":"5441b7cfd8b897b7a13c51aaeb97dc3a516d4aac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Code-Review","score":5,"reason":"Found 2/4 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-25T02:20:27.997Z","repository_id":57290401,"created_at":"2025-08-25T02:20:27.998Z","updated_at":"2025-08-25T02:20:27.998Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29164854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["awesomeness","bacon"],"created_at":"2026-02-06T14:28:35.367Z","updated_at":"2026-02-06T14:28:35.991Z","avatar_url":"https://github.com/videogorillas.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# live4api\n \nLIVE4 Public API\n \nWith Maven:\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.live4\u003c/groupId\u003e\n    \u003cartifactId\u003elive4api3\u003c/artifactId\u003e\n    \u003cversion\u003e3.1.26\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nWith Gradle:\n```\nrepositories {\n    maven {\n        url \"http://kote.videogorillas.com/m2repo/\"\n    }\n}\n\ndependencies {\n    compile 'io.live4:live4api3:3.1.26'\n}\n```\n\n### Command line tools\n\nPrint stream updates \n\n```\njava -cp live4api3-3.1.26-uberjar.jar io.live4.apiclient.StreamUpdatesMain http://$USER:$PASSWORD@beta.missionkeeper.com/\n```\n\n### Usage\nNOTE: Live4 public API is based on [ReactiveX library](https://github.com/ReactiveX/RxJava). You can find ReactiveX docs [here](https://github.com/ReactiveX/RxJava/wiki).\n\n1.  Create RxApiClient instance: \n    ```\n    String url = \"http://1.1.1.1:8042\";\n    RxApiClient rxApiClient = new RxApiClient(url);\n    ```\n    \n2.  Log in:\n\n    ```\n    String email = \"your@email.com\";\n    String password = \"123\";\n    Observable\u003cUser\u003e userRx = rxApiClient.login(email, password);\n    userRx.subscribe(user -\u003e {\n        // Do something with your user here\n    });\n    ```\n3. Select organisation:\n    ```\n    // This will list all user profiles:\n    Map\u003cString, UserProfile\u003e profiles = user.profiles;\n    for (String orgId : profiles) {\n        // Chose the organisation here\n    }\n    ```\n\n    ```\n    // Alternatively, you can just select the first organization available for streaming:\n    String orgId = user.getFirstOrgId();\n    ```\n4. Select mission or create a new one:\n    ```\n    // This will list all available missions in this organization:\n    Observable\u003cMission\u003e missionsRx = rxApiClient.listMissions(orgId);\n    missionsRx.subscribe(mission -\u003e {\n        // select mission here\n    });\n    ```\n\n    ```\n    // Alternatively, you can create a new mission:\n    Mission mission = new Mission();\n    mission.createdByUserId = user.id;\n    mission.startTime = new org.stjs.javascript.Date();\n    long oneDay = 24 * 60 * 60 * 1000;\n    mission.endTime = new org.stjs.javascript.Date(mission.startTime.getTime() + oneDay);\n    mission.hardware = $array();\n    mission.joined = $map();\n    mission.name = missionName;\n    mission.orgId = orgId;\n    mission.state = Mission.State.PENDING;\n    mission.streamIds = $array();\n    mission.addUser(user, MissionRole.OWNER);\n\n    Observable\u003cMission\u003e missionRx = rxApiClient.createMission(mission);\n    missionRx.subscribe(newMission -\u003e {\n        // newMission object contains newly created mission\n    });\n    ```\n5. Create a hardware instance:\n    ```\n    Hardware hw = Hardware.drone(\"MyDrone\");\n    ```\n    \n6. Create a stream:\n    ```\n    StreamResponse sr = new StreamResponse();\n    sr.title = \"Stream from \" + user.getName();\n    sr.hardwareId = hw.getId();\n    Observable\u003cStreamResponse\u003e newStreamRx = rxApiClient.createStream(sr).replay().autoConnect();\n    ```\n    \n7. Add stream to mission:\n    ```\n    mission.addStream(stream.streamId);\n    mission.addHardware(hw);\n    rxApiClient.updateMission(m).subscribe(m -\u003e {\n        // mission updated\n    }, e -\u003e {\n        e.printStackTrace();\n    });\n    ```\n    \n8. Get mission share token:\n\n    ```\n    Observable\u003cMission.ShareToken\u003e shareTokenRx = rxApiClient.getShareToken(mission.getId());\n    ```\n    \n9. Stream uploads:\n    \n    Stream uploads include uploading initial json metadata, video data, metadata (stream locations), and \"end of stream\" data.\n    \n    Json metadata:\n    ```\n    StreamId sid = stream.sid();\n    \n    DebugJs noStripAacDebugJs = new DebugJs();\n    noStripAacDebugJs.stripaac = false;\n        \n    Observable\u003cRequest\u003e debugjs = Observable.just(rxApiClient.uploadJsonRequest(sid, DebugJs.DEBUG_JS, noStripAacDebugJs));\n    ```\n        \n    Video data:\n    ```\n    // You should actually set up your video stream here:\n    Observable\u003cRequest\u003e videoUploadsRx = ...\n    ```\n    \n    Stream locations metadata:\n    ```\n    // The next code fakes stream locations for demo purposes. In the real life, you would take these locations from drone data, mobile data, etc.:\n    StreamLocation loc = StreamLocation.latLng(sdf.format(new Date()), 42, 42);\n    loc.altitude = new Double(42);\n    loc.course = new Double(42);\n    loc.horizontalAccuracy = new Double(42);\n    loc.verticalAccuracy = new Double(42);\n    loc.speed = new Double(42);\n    \n    Observable\u003cStreamLocation\u003e locationsRx = Observable.just(loc).repeat();\n\n        Observable\u003cList\u003cStreamLocation\u003e\u003e chunks = locationsRx.buffer(2, SECONDS).filter(list -\u003e !list.isEmpty());\n\n        Observable\u003cPair\u003cInteger, List\u003cStreamLocation\u003e\u003e\u003e numberedChunks = chunks.zipWith(\n                Observable.range(0, MAX_VALUE), (locations, mseq) -\u003e new Pair(mseq, locations));\n        numberedChunks = numberedChunks.onBackpressureBuffer();\n        \n    Observable\u003cRequest\u003e locationUploads = numberedChunks.map(p -\u003e {\n            int mseq = p.left;\n            List\u003cStreamLocation\u003e locations = p.right;\n            String filename = locationsFilename(mseq);\n            return rxApiClient.uploadJsonRequest(sid, filename, Collections.singletonMap(\"locations\", locations));\n        });\n    ```\n    \n    Video data and stream locations metadata is then merged (we don't care about the order here):\n    ```\n    Observable\u003cRequest\u003e uploadRequests = Observable.merge(videoUploadsRx, locationsRx);\n    ```\n    \n    End of stream data:\n    ```\n    // End of stream data holds information about all uploaded chunks:\n    Observable\u003cRequest\u003e eosUploadsRx = ...\n    ```\n    \n    Json metadata, video data, locations metadata, and eos streams are concatenated then:\n    ```\n    Observable\u003cResponse\u003e uploads = Observable.concat(debugjs, uploadRequests, eosUploadsRx)\n        .onBackpressureBuffer()\n        .concatMap(request -\u003e {\n        return uploadWithRetry(client, request);\n        });\n    ```\n\n# Release snapshots \u0026\u0026 npm\n\n0. `npm install`\n1. Make sure that pom.xml \u0026 package.json versions are the same;\n\n**IMPORTANT**\n\n```\n# package.json\n  \"version\": \"3.5.0-betaX\",\n\n# pom.xml\n\u003cversion\u003e3.5.0-betaX-SNAPSHOT\u003c/version\u003e\n```\n\n2. `mvn clean package`\n3. `grunt`\n4. `git commit`\n5. `mvn release:prepare`\n5.1. Agree with questions\n6. `git push`\n7. `npm login`\n8. `npm publish`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideogorillas%2Flive4api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvideogorillas%2Flive4api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideogorillas%2Flive4api/lists"}