TheWidlarzGroup/react-native-video

[windows] seekableDuration property does not exist

Open

#3084 aperta il 4 apr 2023

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Kotlin (3027 fork)batch import
6.x.xAcceptedPlatform: Windowsbughelp wanted

Metriche repository

Star
 (7677 star)
Metriche merge PR
 (Merge medio 34g 22h) (1 PR mergiata in 30 g)

Descrizione

Bug

the seekableDuration property doesn't exist in the onProgress() method, what's even weirder is that it comes from nativeEvent. Despite that, I changed the format of the videos from .mkv to mp3 and mp4, but without success

Platform

  • - windows
  • - android
  • - ios
  • - web
  • - tvOS

Environment info

React native info output:

info Fetching system and libraries information...
System:
    OS: Windows 10 10.0.19044
    CPU: (4) x64 Intel(R) Core(TM) i5 CPU         650  @ 3.20GHz
    Memory: 665.30 MB / 7.93 GB
  Binaries:
    Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.15 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK:
      API Levels: 28, 29, 30, 31, 32, 33
      Build Tools: 30.0.3, 31.0.0, 33.0.0
      System Images: android-26 | Google Play Intel x86 Atom, android-28 | Wear OS Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-31 | Intel x86 Atom_64, android-31 | Google TV Intel x86 Atom, android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64
      Android NDK: Not Found
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Enabled
      AllowAllTrustedApps: Enabled
      Versions: 10.0.18362.0, 10.0.19041.0, 10.0.22000.0
  IDEs:
    Android Studio: AI-221.6008.13.2211.9619390
    Visual Studio: 17.5.33502.453 (Visual Studio Community 2022)
  Languages:
    Java: 11.0.15 - C:\Program Files\OpenJDK\openjdk-11.0.15_10\bin\javac.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.0 => 0.71.0
    react-native-windows: 0.71.4 => 0.71.4
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 5.2.1

Steps To Reproduce

  1. add a console.log in the onProgress method

Captura de tela 2023-04-04 141835

...

Expected behaviour

  1. that the seekableDuration property comes with

Reproducible sample code

Video sample

Captura de tela 2023-04-04 141746

Guida contributor