mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-05 13:46:59 +00:00
Implement media sessions notification
This commit is contained in:
+2
-1
@@ -48,6 +48,7 @@ function PlayerExample({
|
||||
const currentTime = usePlayerState("currentTime");
|
||||
const duration = usePlayerState("duration");
|
||||
const playbackRate = usePlayerState("playbackRate");
|
||||
|
||||
const muted = usePlayerState("muted");
|
||||
const volume = usePlayerState("volume");
|
||||
const [logs, setLogs] = useState<string[]>([]);
|
||||
@@ -450,7 +451,7 @@ function App(): React.JSX.Element {
|
||||
);
|
||||
|
||||
return (
|
||||
<OmniProvider source={source}>
|
||||
<OmniProvider source={source} showNotification>
|
||||
<PlayerExample
|
||||
onPrev={handlePrev}
|
||||
onNext={handleNext}
|
||||
|
||||
Reference in New Issue
Block a user