mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Add a readme, make it easier to install
This commit is contained in:
+3
-1
@@ -72,7 +72,9 @@ const SubtitleOverlay = ({
|
||||
const instance = new PgsRenderer({
|
||||
video: el,
|
||||
subUrl: subtitle.link,
|
||||
...(pgs?.workerUrl && { workerUrl: pgs.workerUrl }),
|
||||
workerUrl:
|
||||
pgs?.workerUrl ??
|
||||
new URL("libpgs/dist/libpgs.worker.js", import.meta.url).href,
|
||||
});
|
||||
attach({ destroy: () => instance.dispose() });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user