Skip to content

Commit

Permalink
Update publish-alpha (#3363)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Nov 11, 2024
2 parents 8198b4d + bdca62e commit d0d5058
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions packages/hms-video-store/src/IHMSActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ export interface IHMSActions<T extends HMSGenericTypes = { sessionStore: Record<
setPlaylistSettings(settings: HMSPlaylistSettings): void;

initDiagnostics(): HMSDiagnosticsInterface;

getDebugInfo(): DebugInfo;
/**
* @internal
* Method to get enabled flags and endpoints. Should only be called after joining.
*/
getDebugInfo(): DebugInfo | undefined;
}
6 changes: 5 additions & 1 deletion packages/hms-video-store/src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,11 @@ export class HMSSdk implements HMSInterface {
return this.transport?.getWebrtcInternals();
}

getDebugInfo(): DebugInfo {
getDebugInfo(): DebugInfo | undefined {
if (!this.transport) {
HMSLogger.e(this.TAG, `Transport is not defined`);
throw new Error('getDebugInfo can only be called after join');
}
const websocketURL = this.transport.getWebsocketEndpoint();
const enabledFlags = Object.values(InitFlags).filter(flag => this.transport.isFlagEnabled(flag));
const initEndpoint = this.store.getConfig()?.initEndpoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export class ErrorBoundary extends Component {
<Text>Something went wrong</Text>
<Text>Message: ${this.state.error}</Text>
<br />
Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on
Please reload to see if it works. If you think this is a mistake on our side, please reach out to us
on&nbsp;
<a href="https://dashboard.100ms.live/dashboard" target="_blank" rel="noreferrer">
Dashboard
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const InsetTile = ({ peerId }: { peerId?: string }) => {
r: '$2',
...(!minimised
? {
aspectRatio: aspectRatio,
aspectRatio: `${aspectRatio}`,
h: height,
}
: {}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ export const MwebOptions = ({
</Sheet.Content>
</Sheet.Root>
<SettingsModal open={openSettingsSheet} onOpenChange={setOpenSettingsSheet} screenType={screenType} />
<StatsForNerds open={openStatsForNerdsSheet} onOpenChange={setOpenStatsForNerdsSheet} />

{openSettingsSheet && <StatsForNerds open={openStatsForNerdsSheet} onOpenChange={setOpenStatsForNerdsSheet} />}

{openModals.has(MODALS.MUTE_ALL) && (
<MuteAllModal onOpenChange={(value: boolean) => updateState(MODALS.MUTE_ALL, value)} isMobile />
Expand Down

0 comments on commit d0d5058

Please sign in to comment.