react-native-video Android 获取视频总时长
介绍
在 npm install 之后, 在Android上面,只能获取到currentTime 和 缓存的Time,并没有包含总时长。
这样写进度条就不行了。
在IOS上开发详见:http://coding.imooc.com/learn/questiondetail/2076.html;
在Android上开发需要修改: \node_modules\react-native-video\android\src\main\java\com\brentvatne\react\ReactVideoView.java
第一步:
第二步:
第三步:
然后:
|
|