Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
fix: webrtc respect iceServers option (#54)
Browse files Browse the repository at this point in the history
bump
  • Loading branch information
luongngocminh authored May 23, 2024
1 parent e96dfdc commit 0a81ef6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@8xff/atm0s-media-js",
"version": "0.1.3",
"version": "0.1.4",
"description": "Provide a intuitive way to interact with Atm0s Media Server in Vanilla Javascript",
"cdn": "dist/index.umd.js",
"main": "dist/index.js",
Expand Down
5 changes: 4 additions & 1 deletion src/lib/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export class Session extends TypedEventEmitter<ISessionCallbacks> {
this.logger.log('set log level:', this._cfg.logLevel);
setLogLevel(this._cfg.logLevel);
}
this._socket = new RealtimeSocket(urls, new HttpGatewayConnector());
this._socket = new RealtimeSocket(urls, new HttpGatewayConnector(), {
iceServers: this._cfg.iceServers,
latencyMode: this._cfg.latencyMode,
});
this._socket.on('peer_state', (state) => {
this.emit('peer_state', state);
switch (state) {
Expand Down

0 comments on commit 0a81ef6

Please sign in to comment.