fix for low quality trailers

This commit is contained in:
chrisk325 2026-03-01 16:12:13 +05:30 committed by GitHub
parent cadcda27df
commit b9a91d03df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -265,8 +265,8 @@ async function writeDashManifestToFile(
durationSeconds?: number
): Promise<string | null> {
try {
// Lazy import to keep this module usable in non-RN environments (e.g. tests)
const FileSystem = await import('expo-file-system');
// Use the same import path as the rest of the project
const FileSystem = await import('expo-file-system/legacy');
const cacheDir = FileSystem.cacheDirectory;
if (!cacheDir) return null;