Firstly I added the exoplayer dependency to my build. After that I made a xml layout with a custom controller and then I wanted to add app:fastforward_increment & app:rewind_increment. But every time I try to build it throws this error message :
AAPT: error: attribute fastforward_increment not found.
I tried to resolve this issue by adding the other dependecies as they were suggesting in one of the forums but it didn’t work. Do you know what’s causing the issue and how to solve it?
3
Answers
The functions app:fastforward_increment & app:rewind_increment were removed in the version 2.15.0 and replaced by setSeekBackIncrementMs and setSeekForwardIncrementMs in SimpleExoPlayer.Builder. So instead of changing this value in xml file, now you have to change it programatically:
According to @Kristian answer, app:fastforward_increment and app:rewind_increment were removed. You can set like this:
In the new version
com.google.android.exoplayer:exoplayer:2.17.1
of Exoplayer, I deleted the parts in XML and added in the code part.Xml:
Code:
It worked flawlessly.