Skip to content

Black Screen while move next video in Recycleview  #188

@tyagnesh-mufin

Description

@tyagnesh-mufin

[Current Version]
com.google.android.exoplayer:exoplayer:2.17.1
im.ene.kohii:kohii-core:1.4.0.2017001
im.ene.kohii:kohii-exoplayer:1.4.0.2017001

[Problem]
Black Screen within 2-3 seconds while move next video in Recycleview also same in viewpager

[Expected Result]
Can we Load upcoming video so we can preview immediately without black screen

[Code]
Fragment

kohiiManager = kohii.register(this@FullVideoListFragment, MemoryMode.BALANCED).addBucket(getBinding().fullVideoListList)
customAdapter = FullVideoListAdapter(kohii)  

FullVideoListAdapter

kohii.setUp(videoUrl){
                    tag = "${photoUrl}+${adapterPosition}"
                    preload = true
                    repeatMode = Player.REPEAT_MODE_ALL
                    controller = controller(kohiiCanStart = true, kohiiCanPause = true) { playback, _ ->
                        val playable = playback.playable ?: return@controller

                        binding.root.setOnClickListener {
                                        if (playable.isPlaying()) playback.manager.pause(playable)
                                        else playback.manager.play(playable)

                        }
                    }
                }.bind(binding.exoplayerView)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions