decord/source/modules/video_calls/native/SurfaceDirectRendererExperiment.tsx

33 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 9735
// Function ID: 9736
// Name: SurfaceDirectRendererExperiment
// Dependencies: [502, 1433, 504, 2]
2026-07-20 16:05:17 +00:00
// Exports: isSurfaceDirectRendererExperimentEnabled, useSurfaceDirectRendererExperiment
// Module 9735 (SurfaceDirectRendererExperiment)
import AuthenticationStore from "AuthenticationStore" /* 502 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const ApexExperiment = fn(1433);
const obj2 = { kind: "user", name: "2026-03-surface-direct-renderer", defaultConfig: { enableSurfaceDirectRenderer: false }, variations: null };
const obj3 = { 1: null };
obj3[1] = { enableSurfaceDirectRenderer: true };
obj2.variations = obj3;
let closure_3 = ApexExperiment.createApexExperiment(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/video_calls/native/SurfaceDirectRendererExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const ANDROID_SURFACE_DIRECT_RENDERER_EXPERIMENT = "2026-03-surface-direct-renderer";
export const isSurfaceDirectRendererExperimentEnabled = function isSurfaceDirectRendererExperimentEnabled() {
2026-07-29 08:29:29 +00:00
return closure_3.getConfig({ location: "RTCConnection_media_engine_connect" }).enableSurfaceDirectRenderer;
2026-07-20 16:05:17 +00:00
};
export const useSurfaceDirectRendererExperiment = function useSurfaceDirectRendererExperiment(userId, location) {
_require = userId;
const items = [AuthenticationStore];
2026-07-20 16:05:17 +00:00
const items1 = [userId];
const obj = require("initialize");
return null != userId && !require("initialize").useStateFromStores(items, () => closure_0 === AuthenticationStore.getId(), items1) && closure_3.useConfig(location).enableSurfaceDirectRenderer;
2026-07-20 16:05:17 +00:00
};