In View of the defined layout file Add app: fastforward_incerment, app: rewind_increment </ b>. app: fastforward represents the number of seconds for fast forward, and app: rewind_increment represents the number of seconds for rewind. Since it is specified in ms, it is OK if you write "3000" for 3 seconds and "10000" for 10 seconds.
<com.google.android.exoplayer2.ui.SimpleExoPlayerView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:fastforward_increment="30000"
app:rewind_increment="30000"/>
Reference article (It is very easy to understand because it explains Exoplayer carefully): https://medium.com/fungjai/playing-video-by-exoplayer-b97903be0b33
Recommended Posts