Socket
Socket
Sign inDemoInstall

@skyway-sdk/room

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyway-sdk/room - npm Package Compare versions

Comparing version 0.2.0-beta.23 to 0.2.0-beta.24

dist/skyway_room-0.2.0-beta.24.js

6

dist/member/local/base.d.ts
import { Event } from '@skyway-sdk/common';
import { LocalPerson, LocalPersonAdapter, PublicationOptions as BaseOptions, RemoteStream } from '@skyway-sdk/core';
import { LocalPerson, LocalPersonAdapter, PublicationOptions as BaseOptions, RemoteStream, SkyWayConnection } from '@skyway-sdk/core';
import { RoomPublication } from '../../publication';

@@ -58,2 +58,4 @@ import { Room, RoomImpl } from '../../room/base';

leave: () => Promise<void>;
getConnections: () => SkyWayConnection[];
filterConnections: (query: RoomSubscription | RoomPublication) => SkyWayConnection[];
}

@@ -90,2 +92,4 @@ /**@internal */

abstract _updateRoom(room: Room): void;
getConnections(): SkyWayConnection[];
filterConnections(query: RoomPublication | RoomSubscription): SkyWayConnection[];
}

@@ -92,0 +96,0 @@ export interface PublicationOptions extends BaseOptions {

@@ -14,2 +14,4 @@ "use strict";

const common_1 = require("@skyway-sdk/common");
const publication_1 = require("../../publication");
const subscription_1 = require("../../subscription");
const __1 = require("..");

@@ -53,4 +55,16 @@ /**@internal */

}
getConnections() {
return this._local.getConnections();
}
filterConnections(query) {
if (query instanceof publication_1.RoomPublicationImpl) {
return this._local.filterConnections(query._publication);
}
else if (query instanceof subscription_1.RoomSubscriptionImpl) {
return this._local.filterConnections(query._subscription);
}
throw new common_1.SkyWayError({ type: 'invalidParameter', message: '' });
}
}
exports.LocalRoomMemberImpl = LocalRoomMemberImpl;
//# sourceMappingURL=base.js.map

2

package.json
{
"name": "@skyway-sdk/room",
"version": "0.2.0-beta.23",
"version": "0.2.0-beta.24",
"description": "The official Next Generation JavaScript SDK for SkyWay",

@@ -5,0 +5,0 @@ "homepage": "https://beta.skyway.ntt.com/",

@@ -338,2 +338,17 @@ # Room

### MediaStreamTrack から AudioStream / VideoStream を作成する
任意の MediaStreamTrack から Stream を作成することが出来ます。
```ts
const displayStream = await navigator.mediaDevices.getDisplayMedia();
const [displayTrack] = displayStream.getVideoTracks();
const stream = new LocalVideoStream('label', displayTrack);
const [audioTrack] = (
await navigator.mediaDevices.getUserMedia({ audio: true })
).getTracks();
const stream = new LocalAudioStream('label', audioTrack);
```
### AudioStream / VideoStream の利用方法

@@ -340,0 +355,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc