webrtc: flag cameras as cloud

This commit is contained in:
Koushik Dutta
2022-03-30 12:17:39 -07:00
parent 8064d53cdf
commit e9dbb85642
3 changed files with 6 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.2",
"version": "0.0.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/webrtc",
"version": "0.0.2",
"version": "0.0.3",
"dependencies": {
"@koush/werift": "file:../../external/werift/packages/webrtc",
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.2",
"version": "0.0.3",
"scripts": {
"prepublishOnly": "NODE_ENV=production scrypted-webpack",
"prescrypted-vscode-launch": "scrypted-webpack",

View File

@@ -349,7 +349,9 @@ class WebRTCMixin extends SettingsMixinDeviceBase<VideoCamera & RTCSignalingChan
createVideoStreamOptions() {
return getRTCMediaStreamOptions('webrtc', 'WebRTC', this.storageSettings.values.useUdp);
const ret = getRTCMediaStreamOptions('webrtc', 'WebRTC', this.storageSettings.values.useUdp);
ret.source = 'cloud';
return ret;
}
async getVideoStream(options?: RequestMediaStreamOptions): Promise<MediaObject> {