eneim / toro

Video list auto playback made simple, specially built for RecyclerView
Apache License 2.0
1.42k stars 253 forks source link

Get the duration of video #481

Open saadbzu opened 4 years ago

saadbzu commented 4 years ago

Hi, i use URL .mp4 video play in toro. I want to get the duration of video when the player start. I following your tutorial and everything is fine but i want to find the method.getDuration in my holder class. The holder class have 2 options: PlayerView playerView; ExoPlayerViewHelper helper;

but duration function not found. I use 3.7.0.2905-A1 version of library

eneim commented 4 years ago

@saadbzu current workaround is to use Player from playerView.getPlayer() and use it to get the duration.