decord/source/actions/RTCLatencyTestActionCreators.tsx

24 lines
983 B
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 17317
// Function ID: 17318
2026-07-20 16:05:17 +00:00
// Name: fetchRTCLatencyTestRegions
2026-09-02 09:53:35 +00:00
// Dependencies: [527, 706, 2]
2026-07-20 16:05:17 +00:00
// Exports: completeRTCLatencyTest, fetchRTCLatencyTestRegions
2026-09-03 10:05:34 +00:00
// Module 17317 (fetchRTCLatencyTestRegions)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import sendRequest from "sendRequest" /* 527 */;
import dispatcherDefault from "dispatcher" /* 706 */;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("actions/RTCLatencyTestActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const fetchRTCLatencyTestRegions = function fetchRTCLatencyTestRegions(arg0) {
2026-08-24 06:08:38 +00:00
const HTTP = sendRequest.HTTP;
const obj = { url: "https:" + window.GLOBAL_ENV.RTC_LATENCY_ENDPOINT + "?v=" + arg0, rejectWithError: sendRequest.rejectWithMigratedError() };
2026-07-20 16:05:17 +00:00
return HTTP.get(obj);
};
export const completeRTCLatencyTest = function completeRTCLatencyTest(latencyRankedRegions, mapped) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "RTC_LATENCY_TEST_COMPLETE", latencyRankedRegions, geoRankedRegions: mapped };
obj.dispatch(obj);
};