I am facing this exoplayer not found error in video android studio application after I updated my project dependencies. I don’t know how to update old Exoplayer link to https://mvnrepository.com/artifact/com.google.android.exoplayer/exoplayer Can anyone tell how to remove this error and update to latest exoplayer version ? Answer Worked after adding these to build.gradle: And enabling multidex. Check this out https://exoplayer.dev/hello-world.html
Tag: exoplayer
Exoplayer multiple instances when loading new fragments
I am creating a radio streaming app for a friend. I decided go down the Exo player route. Everything works fine, apart from if I load a new fragment or turn the screen round. Then I get a new instance of Exo player that starts behind the original. It can get really messy – how can I avoid this? Here
Attempt to invoke virtual method on Playerview.setplayer on a null object reference
I am getting a null pointer exception where there shouldnt be one. Here is the error readout Here is the activity source code (Its from a google codelab on the exoplayer) and has been modified a little. The layout file is just a Playerview element with its ID as video_view Any help is appreciated. This is the codelab HERE The
How to make PlayerView full screen in landscape mode when used in MotionLayout
I want to make it possible to make the PlayerView in landscape mode full screen but I can’t make it work. So far, I have tried to set the playerView layout params programmatically when configuration changes to landscape mode, but it still isn’t working. Layout that I have created And programatically, I am doing it this way (see below code)
ExoPlayer switching media source without black screen
I’m using exoplayer in my project, when switching mediasource i just use This causes approx. 0.5 seconds black screen until it switches video. Is there a way to tell exoplayer to retain last frame from previous video (instead of 0.5 sec black screen) until new video is started? Answer