Set the number of seconds for fast forward and rewind in ExoPlayer

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

Set the number of seconds for fast forward and rewind in ExoPlayer
[For beginners] DI ~ The basics of DI and DI in Spring ~
Set the maximum number of characters in UITextField in RxSwift
How to change the maximum and maximum number of POST data in Spark
[Order method] Set the order of data in Rails
Compare the speed of the for statement and the extended for statement.
Count the number of occurrences of a string in Ruby
Automatically set the width and height of the UI Label
[Swift] Set the margins for multiple lines of UI Label: top, bottom, left, and right
[For beginners] Explanation of classes, instances, and statics in Java
[Ruby] Questions and verification about the number of method arguments
Set the time zone in the JVM of your Azure application
Count the number of digits after the decimal point in Java
A program that counts the number of words in a List
Create more Tabs and Fragments in the Fragment of BottomNavigationView
JSP-About the MVC model of Servlet, redirect forward, and scope
Find the number of days in a month with Kotlin
In order not to confuse the understanding of getters and setters, [Do not use accessors for anything! ]
Generate a serial number with Hibernate (JPA) TableGenerator and store it in the Id of String.
[Java] Get the dates of the past Monday and Sunday in order
Handle business logic for a set of Entity in Java class
Let's consider the meaning of "stream" and "collect" in Java's Stream API.
Fix the file name of war to the one set in Maven
{The first consecutive 10-digit prime number in the value of e} .com
Method to add the number of years and get the end of the month
The milliseconds to set in /lib/calendars.properties of Java jre is UTC
Spring validation was important in the order of Form and BindingResult
[Android] Dynamically set the height of ListView with copy (for beginners)
Set "Fixed display of rows and columns" and "Validation rules" in rubyXL