<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 409 when codec changed in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/310693#M612</link>
    <description>&lt;P&gt;In case anyone comes upon this I have resolved this issue:&amp;nbsp;&lt;/P&gt;&lt;P&gt;In pion it was solved by calling&amp;nbsp;&lt;SPAN&gt;m.RegisterDefaultCodecs() instead of sending a few codecs in as the save-to-disk sample does.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In general it appears that the google API will fail with multiple strange errors if it doesn't like the codec (409, 500). More frustrating is that if it will sometimes appear to succeed with some codecs but then just silent fail and not send data. Sending the full barrage of codecs solved that for now.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 19:39:06 GMT</pubDate>
    <dc:creator>cjp</dc:creator>
    <dc:date>2022-12-14T19:39:06Z</dc:date>
    <item>
      <title>409 when codec changed</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/309803#M611</link>
      <description>&lt;P&gt;I am trying to use the Nest APIs to connect. I have gotten all the auth token stuff working. I have created an offer and gotten an answer but the data does not flow. I realized I was not asking for the H264 codec in my offer so I just changed that. Now every time this is the response I get from the API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"code"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;409&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Failed to retrieve answer SDP due to timeout, please try again."&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"ABORTED"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;```&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It's very suspicious that this aborted error happens when I ask for the correct codec... is it hitting some kind of bottleneck? The Error code is under-documented... there's no entry for it.. but 4xx errors are typically requester problems, if it was a server side thing I'd expect 5xx, but of course timeout implies try again. (I have tried and waited many times.)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The Camera itself works in Home app and it works in the google developer sample webapp with browser-based SDP. I am trying headless SDP with the pion webrtc library.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Dec 2022 21:10:25 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/309803#M611</guid>
      <dc:creator>cjp</dc:creator>
      <dc:date>2022-12-13T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: 409 when codec changed</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/310693#M612</link>
      <description>&lt;P&gt;In case anyone comes upon this I have resolved this issue:&amp;nbsp;&lt;/P&gt;&lt;P&gt;In pion it was solved by calling&amp;nbsp;&lt;SPAN&gt;m.RegisterDefaultCodecs() instead of sending a few codecs in as the save-to-disk sample does.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In general it appears that the google API will fail with multiple strange errors if it doesn't like the codec (409, 500). More frustrating is that if it will sometimes appear to succeed with some codecs but then just silent fail and not send data. Sending the full barrage of codecs solved that for now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 19:39:06 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/310693#M612</guid>
      <dc:creator>cjp</dc:creator>
      <dc:date>2022-12-14T19:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: 409 when codec changed</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/314433#M618</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are glad that you were able to resolve the issue. We do have a document in regard to &lt;/SPAN&gt;&lt;A href="https://developers.home.google.com/cloud-to-cloud/traits/camerastream" target="_blank"&gt;&lt;SPAN&gt;camerastream&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; trait. Also, we do have a list of what audio and video codecs we support and many more information that can be found in this document.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 17:04:52 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/314433#M618</guid>
      <dc:creator>sipriyadarshi</dc:creator>
      <dc:date>2022-12-19T17:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: 409 when codec changed</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/316741#M629</link>
      <description>&lt;P&gt;Thank you for replying. I don't understand how to fit the camerastream trait page you linked into the framework. Is this a command that can be sent with the devices/{DEVICE_ID}:executeCommand API call?&lt;BR /&gt;&lt;BR /&gt;Also why does the API respond with an apparent "accept" SDP string but then fail to send data if the codec mix is not its liking? It seems like the GenerateWebRtcStream is the place to show logical failure to accept?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 19:18:11 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/316741#M629</guid>
      <dc:creator>cjp</dc:creator>
      <dc:date>2022-12-21T19:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: 409 when codec changed</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/371859#M834</link>
      <description>&lt;P&gt;There are two set of APIs for Home Controls within Google. &lt;A href="https://developers.home.google.com/cloud-to-cloud/guides/camera" target="_self"&gt;Smart Home API for Cameras&lt;/A&gt; allows you to connect 3p cameras to Google Home ecosystem and provide controls through Google Home App and Google Assistant. &lt;A href="https://developers.google.com/nest/device-access/api/camera-battery" target="_self"&gt;Device Access APIs for Cameras&lt;/A&gt; allows you to control 1p Google Nest Cameras through external systems.&lt;/P&gt;
&lt;P&gt;Both APIs support WebRTC and SDP exchange is documented. I think you are working with the Device Access APIs, but above answer was with Smart Home APIs. Sorry for the confusion.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 13:18:38 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/409-when-codec-changed/m-p/371859#M834</guid>
      <dc:creator>maymun</dc:creator>
      <dc:date>2023-03-03T13:18:38Z</dc:date>
    </item>
  </channel>
</rss>

