mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
add logs to debug mimetypes
This commit is contained in:
parent
7882f66a67
commit
234ff23d1f
1 changed files with 2 additions and 0 deletions
|
|
@ -348,6 +348,7 @@ const AndroidVideoPlayer: React.FC = () => {
|
|||
}
|
||||
|
||||
if (data.audioTracks) {
|
||||
console.log('[TrackDebug] raw audioTracks:', JSON.stringify(data.audioTracks));
|
||||
const formatted = data.audioTracks.map((t: any, i: number) => ({
|
||||
// react-native-video selectedAudioTrack {type:'index'} uses 0-based list index.
|
||||
id: i,
|
||||
|
|
@ -357,6 +358,7 @@ const AndroidVideoPlayer: React.FC = () => {
|
|||
tracksHook.setRnVideoAudioTracks(formatted);
|
||||
}
|
||||
if (data.textTracks) {
|
||||
console.log('[TrackDebug] raw textTracks:', JSON.stringify(data.textTracks));
|
||||
const formatted = data.textTracks.map((t: any, i: number) => ({
|
||||
// react-native-video selectedTextTrack {type:'index'} uses 0-based list index.
|
||||
// Using `t.index` can be non-unique/misaligned and breaks selection/rendering.
|
||||
|
|
|
|||
Loading…
Reference in a new issue