Fishjam Web SDK - v0.18.0
    Preparing search index...
    • This hook can register/deregister a custom MediaStream with Fishjam.

      Type Parameters

      • T extends string

      Parameters

      • sourceId: T

      Returns {
          setStream: (newStream: null | MediaStream) => Promise<void>;
          stream: undefined | MediaStream;
      }

      • setStream: (newStream: null | MediaStream) => Promise<void>

        Associates the given stream with the custom source. This stream will be sent to Fishjam after startStreaming has been called.

      • stream: undefined | MediaStream

        The MediaStream currently associated with the custom source