google-home/chromecast: publish with webrtc fixes

This commit is contained in:
Koushik Dutta
2022-02-09 12:35:16 -08:00
parent d3da356ceb
commit cd218f3bb7
6 changed files with 8 additions and 8 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/chromecast",
"version": "0.1.40",
"version": "0.1.41",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/chromecast",
"version": "0.1.40",
"version": "0.1.41",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/sdk": "file:../../sdk",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/chromecast",
"version": "0.1.40",
"version": "0.1.41",
"description": "Send video, audio, and text to speech notifications to Chromecast and Google Home devices",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/google-home",
"version": "0.0.35",
"version": "0.0.38",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/google-home",
"version": "0.0.35",
"version": "0.0.38",
"dependencies": {
"@googleapis/homegraph": "^2.0.0",
"@homebridge/ciao": "^1.1.3",

View File

@@ -42,5 +42,5 @@
"@types/lodash": "^4.14.168",
"@types/url-parse": "^1.4.3"
},
"version": "0.0.35"
"version": "0.0.38"
}

View File

@@ -16,7 +16,7 @@ commandHandlers['action.devices.commands.GetCameraStream'] = async (device: Scry
const ret = executeResponse(device);
const engineio = await endpointManager.getPublicLocalEndpoint() + 'engine.io/';
const mo = mediaManager.createMediaObject(engineio, ScryptedMimeTypes.LocalUrl);
const mo = mediaManager.createMediaObject(Buffer.from(engineio), ScryptedMimeTypes.LocalUrl);
const cameraStreamAccessUrl = await mediaManager.convertMediaObjectToUrl(mo, ScryptedMimeTypes.LocalUrl);
const cameraStreamAuthToken = `tok-${Math.round(Math.random() * 10000).toString(16)}`;

View File

@@ -492,7 +492,7 @@ class GoogleHome extends ScryptedDeviceBase implements HttpRequestHandler, Engin
return;
}
const { token_info } = cloudStorage;
const response = await axios.post('http://home.scrypted.app/_punch/reportState', report, {
const response = await axios.post('https://home.scrypted.app/_punch/reportState', report, {
headers: {
Authorization: `Bearer ${token_info}`
},