Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8s: Edge: Resolve domain as CANDIDATE. #3163

Closed
winlinvip opened this issue Sep 1, 2022 · 1 comment
Closed

K8s: Edge: Resolve domain as CANDIDATE. #3163

winlinvip opened this issue Sep 1, 2022 · 1 comment
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English. Feature It's a new feature. Kubernetes For K8s, Prometheus, APM and Grafana. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.

Comments

@winlinvip
Copy link
Member

winlinvip commented Sep 1, 2022

In English:

In CDN or Edge scenarios, the IP of the Edge needs to be returned, for example:

Browsers --WebRTC--> Edge Proxy --> K8s(Service) --> Proxy --> SRS

At this time, the address to be returned is not the K8s address, but the address closer to the user's edge.

However, this edge address is generally a domain name, and Firefox does not support domain name CANDIDATEs, so it must be resolved. The process should be like this:

  1. The browser accesses the SRS API.
  2. SRS resolves the Edge domain name, and according to the client IP, resolves the nearest IP access point address.
  3. The resolved IP is used as a CANDIDATE and returned to the browser via SDP.
  4. The browser implements media access as shown in the diagram above.

Note: The Proxy in front of SRS is optional. After supporting the cluster, Proxy is not needed. In simple scenarios, Proxy is more suitable. See #3138

@winlinvip winlinvip added Feature It's a new feature. WebRTC WebRTC, RTC2RTMP or RTMP2RTC. labels Sep 1, 2022
@winlinvip winlinvip self-assigned this Sep 1, 2022
@winlinvip winlinvip changed the title K8s: Edge: Resolve domain name as CANDIDATE. 解析域名生成CANDIDATE K8s: Edge: Resolve domain as CANDIDATE. 解析域名生成CANDIDATE Sep 1, 2022
@winlinvip winlinvip added the Kubernetes For K8s, Prometheus, APM and Grafana. label Sep 1, 2022
@winlinvip
Copy link
Member Author

winlinvip commented Sep 16, 2022

Support for retaining domain names has been added, so non-Firefox scenarios can be resolved by the client.

@winlinvip winlinvip changed the title K8s: Edge: Resolve domain as CANDIDATE. 解析域名生成CANDIDATE K8s: Edge: Resolve domain as CANDIDATE. Jul 18, 2023
@ossrs ossrs locked and limited conversation to collaborators Jul 18, 2023
@winlinvip winlinvip converted this issue into discussion #3633 Jul 18, 2023
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 29, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
EnglishNative This issue is conveyed exclusively in English. Feature It's a new feature. Kubernetes For K8s, Prometheus, APM and Grafana. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

No branches or pull requests

1 participant