Variable default

default: {
    connection: (
        signalingUrlCandidates: string | string[],
        debug?: boolean,
    ) => SoraConnection;
    helpers: {
        applyMediaStreamConstraints: (
            mediaStream: MediaStream,
            constraints: MediaStreamConstraints,
        ) => Promise<void>;
    };
    version: () => string;
}

Sora JS SDK package

Type declaration

  • connection: (signalingUrlCandidates: string | string[], debug?: boolean) => SoraConnection

    SoraConnection インスタンスを生成するメソッド

    const connection = Sora.connection('ws://192.0.2.100:5000/signaling', true);
    
  • helpers: {
        applyMediaStreamConstraints: (
            mediaStream: MediaStream,
            constraints: MediaStreamConstraints,
        ) => Promise<void>;
    }

    WebRTC のユーティリティ関数群

    • applyMediaStreamConstraints: (mediaStream: MediaStream, constraints: MediaStreamConstraints) => Promise<void>
  • version: () => string

    SDK のバージョンを返すメソッド