Giter VIP home page Giter VIP logo

google-home / smarthome-camerastream-webrtc Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 1.0 34 KB

This project contains the source for the Implement CameraStream using WebRTC codelab, which demonstrates how to stream from a local webcam to a Google Nest display device using a Firebase backend.

Home Page: https://developers.home.google.com/codelabs/smarthome-webrtc

License: Apache License 2.0

JavaScript 70.61% HTML 17.65% CSS 11.73%
firebase google iot javascript smarthome webrtc

smarthome-camerastream-webrtc's People

Contributors

kkanabarci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kakopappa

smarthome-camerastream-webrtc's Issues

EMPTY_SDP error ?

Hello,

Not sure whether provided example is out of date or I am missing something.

Sync response:

{"status":200,"headers":{"content-type":"application/json;charset=utf-8"},"body":{"requestId":"3975532901942190831","payload":{"agentUserId":"5fb9fc3a45e1952e0919c043","devices":[{"id":"64971cac94b0e2a6240518ad","type":"action.devices.types.CAMERA","traits":["action.devices.traits.CameraStream"],"name":{"defaultNames":["front camera"],"name":"front camera","nicknames":["front camera"]},"willReportState":true,"roomHint":"Living Room","deviceInfo":{"manufacturer":"xxx","model":"Camera","hwVersion":"1.0","swVersion":"1.0"},"attributes":{"cameraStreamSupportedProtocols":["webrtc"],"cameraStreamNeedAuthToken":true,"cameraStreamNeedDrmEncryption":false,"cameraStreamSupportsPreview":true}}]}}}

GetCameraStream Response:

{"status":200,"headers":{"content-type":"application/json;charset=utf-8"},"body":{"requestId":"15140443867674926092","payload":{"commands":[{"ids":["64971cac94b0e2a6240518ad"],"status":"SUCCESS","states":{"cameraStreamSignalingUrl":"https://xxxx/signaling/answer","cameraStreamProtocol":"webrtc","cameraStreamIceServers":"","cameraStreamOffer":"","cameraStreamAuthToken":""}}]}}}

The camera says Offline and in the cloud logs, I am seeing this error. "EMPTY_SDP"

{
"insertId": "1986k64f262ndk",
"jsonPayload": {
"clientUpdateLog": {
"camerastreamProtocol": "webrtc",
"httpRequestId": "15140443867674926092",
"deviceType": "action.devices.types.CAMERA",
"camerastreamExecutionUpdate": {
"webrtcSignalingInitiationTime": "2023-07-01T04:51:15.638412952Z",
"status": "EMPTY_SDP",
"testPartnerFacingDebugString": "The operation couldn’t be completed. (ASTWebRTCConnectionDomain error -1015.)",
"streamTerminationTime": "2023-07-01T04:51:15.642353057Z"
}
}
},
....
"receiveTimestamp": "2023-07-01T04:51:15.903721178Z"
}

Looks like cameraStreamOffer: "" is the root cause which is here: https://github.com/google-home/smarthome-camerastream-webrtc/blob/main/camerastream-done/functions/index.js#L196

i tried creating a cameraStreamOffer: based on WebRTC Validator Tool and still does not work.

Please advise

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.