예제 #1
0
  /**
   * If the user is logged in and ready to broadcast this will kick off an asynchronous test of
   * bandwidth to all ingest servers. This will in turn fill in the bitrate fields in the ingest
   * list.
   *
   * @return The IngestTester instance that is valid during the test.
   */
  public IngestTester startIngestTest() {
    if (!getIsReadyToBroadcast() || m_IngestList == null) {
      return null;
    }

    if (getIsIngestTesting()) {
      return null;
    }

    m_IngestTester = new IngestTester(m_Stream, m_IngestList);
    m_IngestTester.Start();

    setBroadcastState(BroadcastState.IngestTesting);

    return m_IngestTester;
  }