Skip to content
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

[Android] Use multiple WV sessions #734

Merged
merged 1 commit into from
Jul 31, 2021
Merged

[Android] Use multiple WV sessions #734

merged 1 commit into from
Jul 31, 2021

Conversation

matthuisman
Copy link
Contributor

@matthuisman matthuisman commented Jul 13, 2021

@matthuisman
Copy link
Contributor Author

matthuisman commented Jul 14, 2021

initial results look promising:

  1. https://forums.whirlpool.net.au/thread/3wwnqx63?p=69#r1363
  2. Audio causes video stuttering on L1 Android device #693 (comment)
  3. Intermittent Pixelated Video with Foxtel Go Add-On matthuisman/slyguy.addons#28
  4. Another user via email confirmed this fixed pixelation on 7plus widevine vod content on their sony tv

So i think this solves the problem of having both encrypted audio and video streams on android causing pixalation / buffering.
It doesn't seem to solve the issue of some audio streams (usually 5.1) causing video to buffer
#693 (comment)

@matthuisman matthuisman changed the title [Android] Test multiple WV sessions [Android] Use multiple WV sessions Jul 14, 2021
@matthuisman matthuisman marked this pull request as ready for review July 18, 2021 21:57
@matthuisman
Copy link
Contributor Author

@CastagnaIT
be interested to know if / how this affects your DRM init code?
as with this on Android, we can have multiple DRM sessions for each stream (audio / video)

@CastagnaIT
Copy link
Collaborator

do not think "preinit" opens only one session without any check

but in your commit should be better if you add a comment somewhere for this particularity,
there is a lot of code uncommented make difficult to understand the things

@matthuisman
Copy link
Contributor Author

matthuisman commented Jul 20, 2021

I'd love to add a comment if I knew exactly what it was doing. I simply going off peaks suggestion in the linked forum.

Maybe I'll just put "return false to allow multiple sessions for different streams"

Be handy if you could test with Netflix with the init stuff. Just to make sure it doesn't affect that

@CastagnaIT
Copy link
Collaborator

yes i will do

@CastagnaIT
Copy link
Collaborator

Tried on my smartphone played 3 videos without problems the data there are

@glennguy
Copy link
Contributor

I'm not sure if I know the right answer to this, but should we have a setting for this behaviour? Peak3d did mention that the tradeoff is streams may be slower to start up due to the need to create multiple DRM sessions in Android which would affect all users, not just ones affected by the issue this solves.

@matthuisman
Copy link
Contributor Author

matthuisman commented Jul 29, 2021 via email

@CastagnaIT
Copy link
Collaborator

In my test i did not notice any startup slowdowns noticeable
and my phone is a Honor 8 is a bit grandfather..
but is always possible ask to others do others tests

@matthuisman
Copy link
Contributor Author

I don't mind adding a setting. But I actually think we need less settings, not more. As IA is used by other add-ons, it's not really that obvious to end users that it has its own settings.

Therefore, as less settings and best defaults is always best I reckon.

We are doing a good job if users never need to adjust the settings :)

When adaptive comes in, then that should remove need for users to muck around with bandwidth settings as well .

@glennguy
Copy link
Contributor

@matthuisman all good points, totally agree :)

@glennguy glennguy requested a review from phunkyfish July 29, 2021 10:17
@matthuisman
Copy link
Contributor Author

matthuisman commented Jul 29, 2021

:)
I still need to add the comment. I'll do this 2moro

UPDATE:
Comment added
Ready to go in

Copy link
Contributor

@phunkyfish phunkyfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@glennguy glennguy merged commit 3617d91 into xbmc:Matrix Jul 31, 2021
@matthuisman matthuisman deleted the android_experiments branch July 31, 2021 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audio causes video stuttering on L1 Android device
4 participants