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
Abort management update #2190
Abort management update #2190
Conversation
xhr.abort is called on any active XHRs when XHRLoader.reset is called (for example during player teardown). This will now trigger an event when the player is reset, which ultimately calls replaceRequest. Is this the intended behaviour during player teardown, and will it definitely not cause any problems? |
Hi @bbcrddave , I think you speak about the abort function of xhrLoader, isn't it? In this specific case, we have to do the same as for the other callbacks : I've just added a last commit for this topic. |
@nicosang, we should also remove the line in We lose some level of granularity (in the previous implementation event was raised for a specific StreamProcessor and now for a mediaType) although we are not currently supporting activating multiple tracks of the same type so it should work fine (#1972 asks for multiple tracks of same type support but changing how abort works for implementing that will be the smaller of our problems). |
In AbrController, it's quite weird to trigger the FRAGMENT_LOADING_ABANDONED event without even waiting for the request to be actually aborted. It's done like this because the call to Nico |
But if you are setting onabort handler to null before calling abort method then you are making it useless. I mean, onabort is never going to be called (at least the abort happen for a reason out of our logic, that is good to cover, but not the problem behind the issue we are trying to fix). In fact, after the latest commit issue appears again. After a few text track switches, subtitles stop working. |
@epiclabsDASH you're right....forget my last commit, I have to found a better idea. ;-) |
So, I have questions about onFragmentLoadProgress function of AbrController. What is the need to get request from FragmentModel while request is a parameter of the function? |
The problem I see with that is BolaRule is using |
I agree with you the |
and for me, this event already exists. it's |
Yes, agree with you, it makes sense. @spiterikevin, I could be missing something but after @nicosang suggestion and looking at code seems more reasonably that logic within FRAGMENT_LOADING_ABANDONED event handler is moved to a QUALITY_CHANGE_REQUESTED handler. What do you think? |
I have only one question, @epiclabsDASH and @spiterikevin. The job done currently in |
Apparently seems to be something that should be executed after each quality change but I will let @spiterikevin confirm. |
a72716b
to
6a22b50
Compare
In BolaRule, That said, I agree that the |
…entProcessingInProgress to false and finally restart schedulerControler.
This reverts commit 05cab04.
7d2ec0c
to
17d572d
Compare
Hi,
this PR has to solve the issue #2186 by notifying the scheduleController when a request has been aborted.
Nico