Skip to content
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

Add target query parameter to the SERVER_URL #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions WebRTCiOSSDK/api/AntMediaClientProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ public protocol AntMediaClientProtocol {
Sets the required options to for Ant Media Client to Run
- Parameters:
- url: Full Ant Media Server's websocket url. You can use ws or wss . It should be something
ws://your_server_address:5080/WebRTCAppEE/websocket
wss://your_server_address:5443/WebRTCAppEE/websocket
ws://your_server_address:5080/WebRTCAppEE/websocket?target=origin
wss://your_server_address:5443/WebRTCAppEE/websocket?target=origin
target query details:
It's not mandatory if you don't use the new Load Balancer mechanism
It uses one of the nodes on Cluster mode
Example parameters: "origin" or "edge"
Default value is origin
- streamId: The stream id that you use in your connection. You either play or publish with this stream id.
- token: If you active one-time token on server side, you should enter token value in here. If one-time token is not activated, just leave empty
- mode: The Mode of the Client. It should .play, .publish or .join. If it's .play, it means your WebRTC client will play a stream with your streamId
Expand Down