-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support seeking for FLAC streams without SEEKTABLE. #1808
Comments
@erdemguven - Please take a look. Thanks! |
Hi nezen, currently flac files are seekable only if they include a SEEKTABLE metadata block. In this case your flac doesn't have one. |
erdemguven, thanks! I checked the flac with metaflac and there is no SEEKTABLE. But when I try to seek it with MediaPlayer.seekTo() , it worked. So what's going on? |
MediaPlayer uses libflac for seeking which just do a search in flac file for the correct position if there isn't any seektable. Currently ExoPlayer doesn't do that for flac files. |
Hi, is such a feature on the roadmap for the exoplayer? |
@burix, sorry, it isn't. |
And why not? I receive a lot of user complaints about media the user cannot seek. |
As above, seeking in FLAC already works if there's a SEEKTABLE metadata block. We may support seeking (by searching) in other FLAC files at some point, but it's a long way down our list of priorities right now. If you're able to contribute a pull request that adds support, please feel free to do so. |
Okay it sounded as if the feature was not wanted for some reason. I barely understand all this audio stuff but would really welcome if someone tackles this :) |
This is finished and will be pushed to the dev branch within the next few days. |
Fixed in 972304f. |
I want to know is flac seekable or not? Each time I seek it from the demo-ext, the progress returns to zero immediately.
here is the sample I tried:
The text was updated successfully, but these errors were encountered: