mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
fix(cast): fix empty source on rejoin
This commit is contained in:
@@ -79,6 +79,7 @@ function PlayerExample({
|
||||
const volume = usePlayerState("volume");
|
||||
const isAutoQuality = usePlayerState("isAutoQuality");
|
||||
const castStatus = usePlayerState("castStatus");
|
||||
const source = usePlayerState("source");
|
||||
const [logs, setLogs] = useState<{ id: number; message: string }[]>([]);
|
||||
const logId = useRef(0);
|
||||
const tracks = {
|
||||
@@ -281,6 +282,9 @@ function PlayerExample({
|
||||
<Text style={styles.statText}>
|
||||
Volume: {(volume * 100).toFixed(0)}%
|
||||
</Text>
|
||||
<Text style={styles.statText}>
|
||||
Source: {source?.metadata?.title ?? "(none)"}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<View style={styles.selectorCard}>
|
||||
|
||||
Reference in New Issue
Block a user