Not Able To Get Getduration() For Aac File Using Exoplayer
I have been trying to stream a URL using ExoPlayer. The URLs: STREAM_URL_1 = 'http://storage.googleapis.com/exoplayer-test-media-0/play.mp3' STREAM_URL_2 = 'https://s3-ap-southeast
Solution 1:
There's nothing wrong in your code. MP3 files are formatted in such a way that it's possible to calculate the duration of the file, and seek into any position within it.
However, AAC files do not have that luxury. You can't calulate the duration and can't seek within it.
There is a AAC file in Exoplayer Demo APK. I think if you play that, it will exhibit the same behavour.
Post a Comment for "Not Able To Get Getduration() For Aac File Using Exoplayer"