{"id":19858348,"url":"https://github.com/tuya/webrtc-demo-go","last_synced_at":"2025-05-02T02:30:58.433Z","repository":{"id":54109270,"uuid":"312502014","full_name":"tuya/webrtc-demo-go","owner":"tuya","description":"Tuya WebRTC Web Sample","archived":false,"fork":false,"pushed_at":"2023-02-09T02:14:19.000Z","size":296,"stargazers_count":13,"open_issues_count":3,"forks_count":7,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-06T21:23:18.537Z","etag":null,"topics":["tuya"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tuya.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":"2020-11-13T07:22:15.000Z","updated_at":"2024-10-18T13:03:11.000Z","dependencies_parsed_at":"2024-11-12T14:23:50.243Z","dependency_job_id":"23631df3-200b-4a0a-a884-f29adfb7a542","html_url":"https://github.com/tuya/webrtc-demo-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Fwebrtc-demo-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Fwebrtc-demo-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Fwebrtc-demo-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Fwebrtc-demo-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuya","download_url":"https://codeload.github.com/tuya/webrtc-demo-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972453,"owners_count":21673608,"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":["tuya"],"created_at":"2024-11-12T14:23:09.778Z","updated_at":"2025-05-02T02:30:57.234Z","avatar_url":"https://github.com/tuya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuya RTC Web Demo\n\n[English](README.md) | [中文版](README_cn.md)\n## Overview\nThe WebRTC SDK helps developers quickly access IPC services.\n\n## Preparation before use\n1. Obtain `clientId` and `secret` according to the [Tuya IoT Platform Quick Start](https://developer.tuya.com/en/docs/iot/open-api/quick-start/quick-start1?id=K95ztz9u9t89n).\n\n2. Update `clientId` and `secret` in Demo webrtc.json.\n\n3. Visit the [Tuya open platform authorization page](https://openapi.tuyacn.com/selectAuth?client_id={clientId}\u0026redirect_uri=https://www.example.com/auth\u0026state=1234) and enter the Tuya account Password, agree to authorization, intercept the authorization code `code` in the browser callback URL, where `{clientId}` is the clientId obtained in step 2.\n\n4. Update the `code` in Demo webrtc.json.\n\n5. Select an IPC in the Tuya Smart APP, query the device ID, and update it to the `deviceId` of Demo webrtc.json.\n\n## Example\n\n1. In the Demo source code path, execute `go get` and then execute `go build`.\n\n2. Run `./webrtc-web-sample`.\n\n3. Open `http://localhost:3333` in Chrome, click `Call` to start a WebRTC session.\n\n\n## Precautions\n1. After obtaining the open platform configs, you need to use the string after `/av/u/` in the `result.source_topic.ipc` JSON field as the `from` field in the MQTT Header, so that you can correctly receive the message from the Tuya MQTT service.\n\n\n## Technical Support\n\nYou can get Tuya developer technical support in the following ways:\n\n- Tuya Help Center: [https://support.tuya.com/zh/help](https://support.tuya.com/zh/help)\n- Tuya technical ticket platform: [https://iot.tuya.com/council](https://iot.tuya.com/council)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Fwebrtc-demo-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuya%2Fwebrtc-demo-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Fwebrtc-demo-go/lists"}