mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-14 18:03:57 +00:00
Add a readme, make it easier to install
This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
export { useEvent, usePlayerState } from "./events";
|
||||
export { OmniProvider, usePlayer } from "./provider";
|
||||
export type { OmniEvents } from "./types/events";
|
||||
export type {
|
||||
OmniPlayer,
|
||||
OmniPlayerState,
|
||||
PlayerStatus,
|
||||
Rendition,
|
||||
Track,
|
||||
} from "./types/player";
|
||||
export type {
|
||||
Metadata,
|
||||
MixAudioMode,
|
||||
Source,
|
||||
Subtitle,
|
||||
VideoSrc,
|
||||
} from "./types/source";
|
||||
export type { SubtitleAssets } from "./types/subtitles";
|
||||
export { OmniView } from "./view";
|
||||
|
||||
+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