标签: react-native-track-player

由于track-player和react-native-video中的exo播放器版本冲突,react-native-track-player崩溃

所以我并行使用react-native-video和react-native-track-player,通常两者都工作正常,但是要使用视频播放器的一些额外功能,例如缓冲,我必须使用Exo播放器,但是手动使用exo播放器正在制作react-native-track 播放器崩溃得很好,我试图得到答案,发现它是由于两个库使用的 exo 播放器版本冲突而发生的。谁能帮忙

谢谢

reactjs react-native react-native-video react-native-track-player

5
推荐指数
1
解决办法
1579
查看次数

TypeError: null 不是对象(正在评估 'TrackPlayer.RATING_HEART') && Module AppRegistry 不是已注册的可调用模块

在过去 1.5 天左右的时间里,我试图让 React-native-track-player 工作,但我就是无法实现它。无论我尝试什么,我总是会遇到相同的错误块:

\n
ERROR  TypeError: null is not an object (evaluating \'TrackPlayer.RATING_HEART\')\nERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. \n      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.\n
Run Code Online (Sandbox Code Playgroud)\n

我使用react-native expo和 “正常” react-native(根据react-native docu)设置它。对于我尝试过的所有变体:JSTS

\n
    \n
  • 删除/重新安装节点模块
  • \n …

android reactjs react-native react-native-track-player

2
推荐指数
1
解决办法
5005
查看次数