@giosg/pub-sdk
Advanced tools
Comparing version 0.35.3 to 0.36.0
@@ -297,2 +297,6 @@ import { UserUid, OrganizationUid } from "@giosg/types"; | ||
} | ||
export interface ConferenceStreamOptions { | ||
provider: "cloudflare" | "mux.com"; | ||
low_latency?: boolean; | ||
} | ||
export interface ConferenceStreamResponse { | ||
@@ -299,0 +303,0 @@ rtmps_url: string; |
import { IRealtimeSdk } from "@giosg/realtime-sdk"; | ||
import { Observable } from "rxjs"; | ||
import { PubChannel, DMChannelPayload, PubMessage, PubChannelMember, PubChannelUid, PubMessagePayload, ChannelPayload, PubMessageUid, NotificationSettings, NotificationSettingsPayload, ConferenceTokenResponse, ConferenceTokenContext, ConferenceStreamResponse, Conference } from "./groupchats"; | ||
import { PubChannel, DMChannelPayload, PubMessage, PubChannelMember, PubChannelUid, PubMessagePayload, ChannelPayload, PubMessageUid, NotificationSettings, NotificationSettingsPayload, ConferenceTokenResponse, ConferenceTokenContext, ConferenceStreamResponse, Conference, ConferenceStreamOptions } from "./groupchats"; | ||
import { OrganizationUid, UserUid } from "@giosg/types"; | ||
@@ -33,4 +33,4 @@ export declare class BasePubSdk { | ||
getConferences(orgId: OrganizationUid, userId: UserUid): Observable<Observable<Conference>>; | ||
getConferenceLiveStream(orgId: OrganizationUid, channelId: PubChannelUid): Promise<ConferenceStreamResponse>; | ||
createConferenceLiveStream(orgId: OrganizationUid, channelId: PubChannelUid, options: ConferenceStreamOptions): Promise<ConferenceStreamResponse>; | ||
} | ||
//# sourceMappingURL=sdk.d.ts.map |
@@ -150,7 +150,10 @@ "use strict"; | ||
} | ||
getConferenceLiveStream(orgId, channelId) { | ||
createConferenceLiveStream(orgId, channelId, options) { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}/conference/create_stream`; | ||
return this.sdk.postResource(apiUrl, {}).take(1).toPromise(); | ||
return this.sdk | ||
.postResource(apiUrl, options) | ||
.take(1) | ||
.toPromise(); | ||
} | ||
} | ||
exports.BasePubSdk = BasePubSdk; |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.35.3", | ||
"version": "0.36.0", | ||
"description": "TypeScript interfaces for Giosg Pub", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35062
511