google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.71k stars 6.02k forks source link

Timebar/Seek Buttons are disabled in Exoplayer for some .mkv files and hevc video files #9817

Open lucfier-90 opened 2 years ago

lucfier-90 commented 2 years ago

It works for some mkv files perfectly but for some mkv files it does not show scrubber on time bar and when i try to seek video programmatically it starts from beginning here is my code

simplexo=ExoPlayer.Builder(this,DefaultRenderersFactory(this)).build()
    val datasource=DefaultDataSourceFactory(this,Util.getUserAgent(this,"app"))
    concatenate=ConcatenatingMediaSource()

val mediasource=ProgressiveMediaSource.Factory(datasource).createMediaSource(Uri.parse(ok.get(position.toInt()).path)) concatenate.addMediaSource(mediasource)

    playerview.setPlayer(simplexo)
    simplexo.prepare(concatenate)

    simplexo.seekTo(position.toInt(),C.TIME_UNSET)
        simplexo.setPlayWhenReady(true)
marcbaechinger commented 2 years ago

This sounds like these media files are not seekable. If a file is not seekable then the scrubber is hidden. The behavior you observe when seeking programmatically matches to this as well.

lucfier-90 commented 2 years ago

but in other video players it is seekable

marcbaechinger commented 2 years ago

Can you share a URI to the content that behaves like you describe with us? If you're unable to share test content publicly, please send them to dev.exoplayer@gmail.com using a subject in the format "Issue #9817". Please also update this issue to indicate you’ve done this.

lucfier-90 commented 2 years ago

actually its a movie i am sharing my google drive link https://drive.google.com/file/d/1rKEv97j3kGEXkhvtz2Vt05KXzuSvJuvH/view?usp=sharing

lucfier-90 commented 2 years ago

Screenshot_20211228-150204_Chrome 1 This is what happening