-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Update to ExoPlayer 2.11.4 #3513
Conversation
@Stypox that solution looks really nice! Good idea by using that getTag(). Looks like getTag() is just used as a window tag in a dummy timeline (so not really used at all). |
Whoa. I'm getting insane speedups of 5 to 10 times compared to the current release. Most of the time, the loading circle can't even complete one rotation before the video starts playing. This is awesome! |
@opusforlife2 are you sure you have the same resolution set as default? |
Of course! That is the first thing I do when I set up a new debug apk. It would have been quite a silly mistake otherwise. 🤣 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine. The issues I have had with my approach are gone! 👍
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I can't play YouTube videos on API 19/21 at resolutions higher than 360p. Edit: seems to happen on |
@wb9688 maybe it's due to the slowness of the emulator. Or do you mean it crashes? |
@Stypox: Emulator isn't slow at all. It gives an unrecoverable error in a toast (so no crash report :/) when I try to play it. I only tried MPEG-4 though and not WebM yet, but it still shouldn't happen. Try it yourself in an AVD. ;) |
This happened to me in older versions, too. But with the new exoplayer version I am able to play more videos. We might want to ping one of the people having a KitKat device to test the new player on a real device. FYI: stacktrace
|
I found the apk provided by # 3513 and tested it. The background cannot be
played! Display: Cannot play this stream. The latest version 0.19.3 is the
same!
0.19.3 is the same 😂. Also, when you click on the video, a network error
is displayed when playing in the foreground! Thank you!
在 2020年5月9日星期六,Stypox <notifications@github.com> 写道:
… @domiuns <https://github.com/Domiuns> @mqus <https://github.com/mqus>
@jojoxl01 <https://github.com/jojoxl01> @ask6155
<https://github.com/ask6155> @skil3z <https://github.com/skil3z> you have
Android 4.4, right? Could you please test the apk provided above on your
device and see if it works correctly? Thank you in advance ;-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3513 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZ5MWLMXE3UE7XSKKXK4SLRQVL3VANCNFSM4MXK7EPA>
.
|
@jojoxl01: To be clear: are you saying the behavior is exactly the same as in v0.19.3? Btw was there any previous version last year where it worked correctly? |
Yes, the test version is the same as 0.19.3. No problem with 0.19.2, before
that I used 0.19.2. I will try 0.19.2 again
在 2020年5月10日星期日,wb9688 <notifications@github.com> 写道:
… @jojoxl01 <https://github.com/jojoxl01>: To be clear: are you saying the
behavior is exactly the same as in v0.19.3? Btw was there any previous
version last year where it worked correctly?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3513 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZ5MWN2DHCTUGXBXJDGSHLRQV45RANCNFSM4MXK7EPA>
.
|
Sorry, it may be that my network is not good, I tried again after
changing the VPN, 0.19.3 background and foreground playback are no
problem, and the test version is also fine. It should be my network
problem.
在 2020年5月10日星期日,jo jo <jojo042625@gmail.com> 写道:
… Yes, the test version is the same as 0.19.3. No problem with 0.19.2,
before that I used 0.19.2. I will try 0.19.2 again
在 2020年5月10日星期日,wb9688 ***@***.***> 写道:
> @jojoxl01 <https://github.com/jojoxl01>: To be clear: are you saying the
> behavior is exactly the same as in v0.19.3? Btw was there any previous
> version last year where it worked correctly?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#3513 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHZ5MWN2DHCTUGXBXJDGSHLRQV45RANCNFSM4MXK7EPA>
> .
>
|
I found that it has something to do with the network, many VPNs can not use
it, 0.19.3 and test version
在 2020年5月10日星期日,jo jo <jojo042625@gmail.com> 写道:
… Sorry, it may be that my network is not good, I tried again after changing the VPN, 0.19.3 background and foreground playback are no problem, and the test version is also fine. It should be my network problem.
在 2020年5月10日星期日,jo jo ***@***.***> 写道:
> Yes, the test version is the same as 0.19.3. No problem with 0.19.2,
> before that I used 0.19.2. I will try 0.19.2 again
>
> 在 2020年5月10日星期日,wb9688 ***@***.***> 写道:
>
>> @jojoxl01 <https://github.com/jojoxl01>: To be clear: are you saying
>> the behavior is exactly the same as in v0.19.3? Btw was there any previous
>> version last year where it worked correctly?
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#3513 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AHZ5MWN2DHCTUGXBXJDGSHLRQV45RANCNFSM4MXK7EPA>
>> .
>>
>
|
I tested it just now and apart from the usual shenanigans (can't browse soundcloud, the particular peertube video I tried didn't play but downloading it kinda freezed my phone for a while, others played fine) everything worked fine. One thing that I was positively noticing is that peertube lets me resize the popup player more easily then when I last tried (a while ago). But playing videos(fullscreen/popup/background, 360p/1080p60/various) works just fine, although I mostly had MPEG4 videos and only a single webm video. I don't know if there are other codecs I should try. If you have a youtube link with such a case I can try it out. |
@Stypox I have been testing your debug app for 13 days (since this PR came out), and i have no problem with YouTube....... Yes with YouTube. I have this problemi with SoundCloud but it is not your fault but my device. Exception
Crash log
|
@domiuns: Nothing regarding that (i.e. requested kiosk in SoundCloud) has changed in this PR. I think you should see the same error when using it in the latest released version. |
@wb9688 yes i have same issues with last release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TobiGr: I didn't encounter any bugs. I don't know if using |
Latest version still lag as usual on my low end tablet running 4.4 with 512 MB, nothing has really changed. I'm still using MX Player app for better performance |
What is it?
Description of the changes in your PR
This PR updates ExoPlater to 2.11.4, which should hopefully fix some player issues like slowdowns. On my phone and on emulators I noticed that stream loading is (roughly speaking) twice as fast with regards to the old player, but I can't provide a proof ;-)
This PR also includes the changes made by @Redirion in #2859, i.e. making use of two new features:
setHandleWakeLock
andsetHandleAudioBecomingNoisy
.I fixed the bug faced by @Redirion with
MaskingMediaSource
s: the issue was that the new version wraps aroundMediaSource
s being fed to it with aMaskingMediaSource
, preventing direct access to the original media source. NewPipe made use of this feature in theManagedMediaSource
interface to keep track of whether streams were pre-buffered (probably among other things), by storing stream data insideMediaSource
s. After some dedication I found out that a way to access the underlyingMediaSource
of aMaskingMediaSource
exists:getTag()
. That function can be overridden to return any type of variable, so I made it returnthis
in theManagedMediaSource
interface. I guess this also fixed the issue reported by @TobiGr, i.e. "When changing the resolution while playing, the video stops and the current position jumps to the end".ExoPlayer release notes: https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md
Testing apk
I was able to test thoroughly only on my Android 7.0 phone, since on my pc emulators are too slow to play a video and I can't get audio to work with
pulseaudio
. Anyway I was able to test the basic features on Android API 19 (4.4) and Android API 29 (10) emulators.app-debug.zip
Agreement