@daily-co/daily-js
Advanced tools
Comparing version 0.9.98 to 0.9.981
{ | ||
"name": "@daily-co/daily-js", | ||
"version": "0.9.98", | ||
"version": "0.9.981", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=10.0.0" |
@@ -84,4 +84,5 @@ | ||
export const DAILY_METHOD_ROOM = 'lib-room-info'; | ||
export const DAILY_METHOD_SET_NETWORK_TOPOLOGY = 'set-network-topology'; | ||
export const DAILY_CUSTOM_TRACK = 'daily-custom-track'; | ||
export const DAILY_UI_REQUEST_FULLSCREEN = 'request-fullscreen'; | ||
export const DAILY_UI_EXIT_FULLSCREEN = 'request-exit-fullscreen'; |
@@ -78,2 +78,3 @@ import EventEmitter from 'events'; | ||
DAILY_METHOD_ROOM, | ||
DAILY_METHOD_SET_NETWORK_TOPOLOGY, | ||
DAILY_CUSTOM_TRACK, | ||
@@ -218,2 +219,4 @@ DAILY_UI_REQUEST_FULLSCREEN, | ||
mobile: parsed.platform.type === 'mobile', | ||
name: basic.name, | ||
version: basic.version, | ||
// basic, parsed | ||
@@ -850,2 +853,16 @@ }; | ||
async setNetworkTopology(opts) { | ||
return new Promise(async (resolve, reject) => { | ||
let k = (msg) => { | ||
if (msg.error) { | ||
reject({ error: msg.error }); | ||
} else { | ||
resolve({ workerId: msg.workerId }); | ||
} | ||
}; | ||
this._sendIframeMsg({ action: DAILY_METHOD_SET_NETWORK_TOPOLOGY, | ||
opts }, k); | ||
}); | ||
} | ||
// | ||
@@ -852,0 +869,0 @@ // internal methods |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2399022
2007