@skyway-sdk/room
Advanced tools
Comparing version 0.3.0-beta.3 to 0.3.0-beta.4
@@ -1,2 +0,2 @@ | ||
import { ContentType, Event, RemoteStream, SubscriptionImpl, SubscriptionStatus } from '@skyway-sdk/core'; | ||
import { Codec, ContentType, Event, RemoteStream, SubscriptionImpl, SubscriptionStatus } from '@skyway-sdk/core'; | ||
import { RemoteRoomMember } from '../member/remote/base'; | ||
@@ -10,2 +10,3 @@ import { RoomPublication } from '../publication'; | ||
readonly onStreamAttached: Event<void>; | ||
readonly onCanceled: Event<void>; | ||
readonly subscriber: RemoteRoomMember; | ||
@@ -17,2 +18,3 @@ /** | ||
stream?: T; | ||
codec?: Codec; | ||
status: RoomSubscriptionStatus; | ||
@@ -35,2 +37,3 @@ /** | ||
readonly onStreamAttached: Event<void>; | ||
readonly onCanceled: Event<void>; | ||
constructor( | ||
@@ -41,2 +44,3 @@ /**@private */ | ||
get status(): SubscriptionStatus; | ||
get codec(): Codec | undefined; | ||
cancel(): Promise<void>; | ||
@@ -43,0 +47,0 @@ } |
@@ -24,2 +24,3 @@ "use strict"; | ||
this.onStreamAttached = new core_1.Event(); | ||
this.onCanceled = new core_1.Event(); | ||
this.id = _subscription.id; | ||
@@ -30,2 +31,3 @@ this.contentType = _subscription.contentType; | ||
_subscription.onStreamAttached.pipe(this.onStreamAttached); | ||
_subscription.onCanceled.pipe(this.onCanceled); | ||
} | ||
@@ -38,2 +40,5 @@ get stream() { | ||
} | ||
get codec() { | ||
return this._subscription.codec; | ||
} | ||
cancel() { | ||
@@ -40,0 +45,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.3.0-beta.3"; | ||
export declare const PACKAGE_VERSION = "0.3.0-beta.4"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PACKAGE_VERSION = void 0; | ||
exports.PACKAGE_VERSION = '0.3.0-beta.3'; | ||
exports.PACKAGE_VERSION = '0.3.0-beta.4'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@skyway-sdk/room", | ||
"version": "0.3.0-beta.3", | ||
"version": "0.3.0-beta.4", | ||
"description": "The official Next Generation JavaScript SDK for SkyWay", | ||
@@ -5,0 +5,0 @@ "homepage": "https://beta.skyway.ntt.com/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2722469
66896