mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
feat(android): support chromecast
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ export const OmniProvider = ({
|
||||
source,
|
||||
backend = { android: "vlc" },
|
||||
showNotification = false,
|
||||
cast: _,
|
||||
cast,
|
||||
}: {
|
||||
source?: Source;
|
||||
cast?: CastOptions;
|
||||
@@ -24,7 +24,7 @@ export const OmniProvider = ({
|
||||
showNotification?: boolean;
|
||||
}) => {
|
||||
const player = useLazyRef(() =>
|
||||
ProviderFactory.createPlayer(source, backend),
|
||||
ProviderFactory.createPlayer(source, backend, cast),
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user