mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-04 03:36:29 +08:00
feat: enhance LivePlayer messages with localized text and improve M3U parsing logic
This commit is contained in:
@@ -66,7 +66,7 @@ export default function LivePlayer({ streamUrl, channelTitle, onPlaybackStatusUp
|
||||
if (!streamUrl) {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.messageText}>Select a channel to play.</Text>
|
||||
<Text style={styles.messageText}>按向下键选择频道</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ export default function LivePlayer({ streamUrl, channelTitle, onPlaybackStatusUp
|
||||
if (isTimeout) {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.messageText}>Failed to load stream. It might be offline or unavailable.</Text>
|
||||
<Text style={styles.messageText}>加载失败,请重试</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
@@ -98,7 +98,7 @@ export default function LivePlayer({ streamUrl, channelTitle, onPlaybackStatusUp
|
||||
{isLoading && (
|
||||
<View style={styles.loadingOverlay}>
|
||||
<ActivityIndicator size="large" color="#fff" />
|
||||
<Text style={styles.messageText}>Loading...</Text>
|
||||
<Text style={styles.messageText}>加载中...</Text>
|
||||
</View>
|
||||
)}
|
||||
{channelTitle && !isLoading && !isTimeout && (
|
||||
|
||||
Reference in New Issue
Block a user