mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
expose log items for exposing debugging info in sdk users
This commit is contained in:
parent
fc08fc3744
commit
d69b1dc3e2
@ -118,6 +118,14 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
|||||||
return this.callContent?.["m.intent"];
|
return this.callContent?.["m.intent"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gives access the log item for this call while joined.
|
||||||
|
* Can be used for call diagnostics while in the call.
|
||||||
|
**/
|
||||||
|
get logItem(): ILogItem | undefined {
|
||||||
|
return this.joinedData?.logItem;
|
||||||
|
}
|
||||||
|
|
||||||
async join(localMedia: LocalMedia): Promise<void> {
|
async join(localMedia: LocalMedia): Promise<void> {
|
||||||
if (this._state !== GroupCallState.Created || this.joinedData) {
|
if (this._state !== GroupCallState.Created || this.joinedData) {
|
||||||
return;
|
return;
|
||||||
|
@ -70,6 +70,15 @@ export class Member {
|
|||||||
private readonly options: Options,
|
private readonly options: Options,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gives access the log item for this item once joined to the group call.
|
||||||
|
* The signalling for this member will be log in this item.
|
||||||
|
* Can be used for call diagnostics while in the call.
|
||||||
|
**/
|
||||||
|
get logItem(): ILogItem | undefined {
|
||||||
|
return this.connection?.logItem;
|
||||||
|
}
|
||||||
|
|
||||||
get remoteMedia(): RemoteMedia | undefined {
|
get remoteMedia(): RemoteMedia | undefined {
|
||||||
return this.connection?.peerCall?.remoteMedia;
|
return this.connection?.peerCall?.remoteMedia;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user