TheWidlarzGroup / react-native-video

A <Video /> component for react-native
https://docs.thewidlarzgroup.com/react-native-video/
MIT License
7.2k stars 2.9k forks source link

android获取总时间的方法: playableDuration seekableDuration #351

Closed ycg520520 closed 6 years ago

ycg520520 commented 8 years ago

在android上开发获取file开头的本地视频总时间修改方法 详见:http://coding.imooc.com/learn/questiondetail/2553.html

jan-happy commented 8 years ago

I also had to use this fix to get the playableDuration right on Android...

jan-happy commented 7 years ago

Why is there still no fix for this? seekableDuration is totally unusable on Android.

poberwong commented 6 years ago

You can get total time named "duration" in params of callback function "onLoad"

cobarx commented 6 years ago

This has been fixed in 2.1.0