ossrs / srs-unity

WebRTC Samples with SRS SFU server for Unity.
https://ossrs.io
MIT License
64 stars 9 forks source link

Add normal sdp exchange like js does. #8

Closed SetoKaiba closed 1 year ago

SetoKaiba commented 1 year ago

UPDATE: A more accurate description and keep it in English for foreign developers.

  1. Add normal sdp exchange like js does.
  2. Change the unity China version to unity Global version. Reason: The global version won't open because of the auto streaming package is missing in Global package registry. But it's not related.
  3. Add NewtonSoft Json.Net to deserialize the json in threads.
  4. Enable the SrsPlayerNormal, SrsPublisherNormal, SrsStreamerNormal to test.

Tested with ?codec=av1.

winlinvip commented 1 year ago

SRS defines two set of HTTP API:

  1. Legacy API: /rtc/v1/publish/, we won't support it in future.
  2. WHIP API: /rtc/v1/whip/, we will support it in future.

So please never use legacy API, and we will fix bugs if using WHIP api.

SetoKaiba commented 1 year ago

If the WHIP PR is merged. It would be ok.

winlinvip commented 1 year ago

Thanks, we will merge https://github.com/ossrs/srs/pull/3460/files#diff-2d94fb08a8b76aa40f71a392bb00afc19bb96767bd874cf74582a011488dc88cR641 today.

SetoKaiba commented 1 year ago

Hi, again. As the version 4 is still the intended stable version. Will this PR backport to it? Thank you.