Add loaded event to the player#2441
Conversation
joeyparrish
left a comment
There was a problem hiding this comment.
Looks reasonable. Can you give us a little more detail on why SS ads needs this event?
|
All tests passed! |
|
The SS manage by it self the load in https://github.com/google/shaka-player/blob/master/lib/ads/server_side_ad_manager.js#L293 In my app logic I need get the resolved promise for execute some actions. Due that now there are not promise, I need a event for execute the actions |
|
I'll go ahead and merge this, but is there any need for a corresponding Promise from the ad manager? |
|
With this change is not necessary a promise (for me, i don't know other use cases...) |
|
@joeyparrish , Why do you appear as the creator of the commit? |
|
I'm not sure. I just clicked the merge button in GitHub's PR interface. |
|
Looking at the details in the git log, it looks like GitHub did something odd: Normally, I would expect to see you as the author, as I do in this one: Perhaps you should raise an issue with GitHub support. I'm not sure what I could have done differently on my end. |
|
It looks like this has happened before, but not recently: $ git log --pretty=full | grep -B 1 'Commit: GitHub' | grep Author
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Tomohiro Matsuzawa (Tomo) <thmatuza75@hotmail.com>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Brian Harris <brianfromoregon@gmail.com>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Tijn Porcelijn <porcelijn@gmail.com>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: LanaIV <LanaIV@users.noreply.github.com>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Álvaro Velad Galván <alvaro.velad@mirada.tv>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>
Author: Joey Parrish <joeyparrish@users.noreply.github.com>And if you dig, there are even more PRs that don't show GitHub as the commiter: I'm sorry I don't understand what's happening. We would prefer you have full credit in the commit log, of course. You've contributed a lot to this project, and we're very grateful. |
|
I just wanted to know what could have happened. No problem in not appearing as an author, I prefer to have the functionality :) Thanks! |
|
We use the "squash & merge" feature in this repo, so it's possible that has something to do with it. But I don't see a difference in behavior that I could tie to squashing. For example, #2400 (2 commits) and #2408 (1 commit) both have the correct info. In any case, thanks again for your contributions! |
|
With the new commit 7b80252 there is the same issue |
|
Yes, I noticed that. I went through the dialog carefully that time, and there wasn't anything different I could have done as far as I can tell. |
Backported to v2.5.x Change-Id: I47c2f19fff39b8be737e7c45b71b1026f8a5bdf0

Add a new event in the player that indicate that the load is complete.
This is necessary for SS ADS because it does the
player.loadprocess.