react-native-video: duration is wrong
Current behavior
10-24 09:24:52.008 6684 6752 D ReactNativeJS: [ 'data',
10-24 09:24:52.008 6684 6752 D ReactNativeJS: { canStepForward: true,
10-24 09:24:52.008 6684 6752 D ReactNativeJS: duration: -9223372036854776,
10-24 09:24:52.008 6684 6752 D ReactNativeJS: canPlaySlowReverse: true,
10-24 09:24:52.008 6684 6752 D ReactNativeJS: naturalSize: { orientation: 'portrait', height: 0, width: 0 },
10-24 09:24:52.008 6684 6752 D ReactNativeJS: textTracks: [],
10-24 09:24:52.008 6684 6752 D ReactNativeJS: canPlayFastForward: true,
10-24 09:24:52.008 6684 6752 D ReactNativeJS: canPlaySlowForward: true,
10-24 09:24:52.008 6684 6752 D ReactNativeJS: currentTime: 0,
10-24 09:24:52.008 6684 6752 D ReactNativeJS: audioTracks: [ { language: '', title: '0', type: 'audio/mp4a-latm', index: 0 } ],
10-24 09:24:52.008 6684 6752 D ReactNativeJS: canPlayReverse: true,
10-24 09:24:52.008 6684 6752 D ReactNativeJS: canStepBackward: true } ]
duration is -9223372036854776
Reproduction steps
Download mp4a-latm and see.
Expected behavior
duration should be positive integer
Platform
Which player are you experiencing the problem on:
- Android MediaPlayer (latest) iOS is fine. (latest)
iOS/Android works fine on (package version 2.x.x). I am trying to upgrade to latest 4.x
Video sample
see comments.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (1 by maintainers)
Any solutions now? still get this bug.