Skip to content

Commit

Permalink
remove player listener
Browse files Browse the repository at this point in the history
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
  • Loading branch information
parneet-guraya authored and mahibi committed Aug 30, 2023
1 parent b2d8981 commit 5f8ef07
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import androidx.annotation.OptIn
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.FileProvider
import androidx.media3.common.MediaItem
import androidx.media3.common.Player
import androidx.media3.common.util.UnstableApi
import androidx.media3.exoplayer.ExoPlayer
import androidx.media3.ui.PlayerView
Expand All @@ -49,7 +48,7 @@ import com.nextcloud.talk.utils.Mimetype.VIDEO_PREFIX_GENERIC
import java.io.File

@AutoInjector(NextcloudTalkApplication::class)
class FullScreenMediaActivity : AppCompatActivity(), Player.Listener {
class FullScreenMediaActivity : AppCompatActivity() {
lateinit var binding: ActivityFullScreenMediaBinding

private lateinit var path: String
Expand Down Expand Up @@ -138,7 +137,6 @@ class FullScreenMediaActivity : AppCompatActivity(), Player.Listener {
private fun initializePlayer() {
player = ExoPlayer.Builder(applicationContext).build()
binding.playerView.player = player
player?.addListener(this)
}

private fun preparePlayer() {
Expand Down

0 comments on commit 5f8ef07

Please sign in to comment.