-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add ArtworkDownloader interface #3707
Conversation
This seems like a good way to abstract this, but have you considered generalizing |
Datadog ReportBranch report: ✅ 0 Failed, 34428 Passed, 6 Skipped, 9m 15.25s Total Time |
These are all Java changes, all failed c++ tests should be flaky. |
The CobaltHttpHelper is a utility customized for the DRM provisioning. I do not see an easy way to combine it with the ArtworkDownloader. The best thing I can do is to combine these 2 things into 1 interface, something like. I felt this is probably not better than split, e.g add this interface on top of what we have How about we submit this first, then follow up with the DRM fix in 2 weeks? |
starboard/android/apk/app/src/main/java/dev/cobalt/media/ArtworkDownloaderDefault.java
Show resolved
Hide resolved
starboard/android/apk/app/src/main/java/dev/cobalt/media/ArtworkLoader.java
Show resolved
Hide resolved
starboard/android/apk/app/src/main/java/dev/cobalt/media/CobaltMediaSession.java
Show resolved
Hide resolved
That's fine. I'd go ahead and make it a re-factor so that the |
19ce1f4
to
1ea00a0
Compare
1ea00a0
to
6ee055e
Compare
Pull Request is not mergeable
76534b1
to
e6ed440
Compare
Extract and refactor the part of the code in ArtworkLoader to a new interface ArtworkDownloader and its default implementation ArtworkDownloaderDefault, so that we could swap the implementation in Kimono to avoid GMS Extract the artwork downloading functionality from ArtworkLoader into a separate interface (ArtworkDownloader) and a default implementation (ArtworkDownloaderDefault). This will allow the Kimono project to provide its own implementation without relying on GMS dependencies. b/347963541 Change-Id: I7edd475991c7dd755aa24f313aaa890db4d5798d
e6ed440
to
23601c0
Compare
Pull Request is not mergeable
Extract and refactor the part of the code in ArtworkLoader to a new interface ArtworkDownloader and its default implementation ArtworkDownloaderDefault, so that we could swap the implementation in Kimono to avoid GMS Extract the artwork downloading functionality from ArtworkLoader into a separate interface (ArtworkDownloader) and a default implementation (ArtworkDownloaderDefault). This will allow the Kimono project to provide its own implementation without relying on GMS dependencies. b/347963541 Change-Id: I7edd475991c7dd755aa24f313aaa890db4d5798d Co-authored-by: Colin Liang <colinliang@google.com> (cherry picked from commit 1f75c29)
Extract and refactor the part of the code in ArtworkLoader to a new interface ArtworkDownloader and its default implementation ArtworkDownloaderDefault, so that we could swap the implementation in Kimono to avoid GMS Extract the artwork downloading functionality from ArtworkLoader into a separate interface (ArtworkDownloader) and a default implementation (ArtworkDownloaderDefault). This will allow the Kimono project to provide its own implementation without relying on GMS dependencies. b/347963541 Change-Id: I7edd475991c7dd755aa24f313aaa890db4d5798d Co-authored-by: Colin Liang <colinliang@google.com> (cherry picked from commit 1f75c29)
Refer to the original PR: #3707 Extract and refactor the part of the code in ArtworkLoader to a new interface ArtworkDownloader and its default implementation ArtworkDownloaderDefault, so that we could swap the implementation in Kimono to avoid GMS Extract the artwork downloading functionality from ArtworkLoader into a separate interface (ArtworkDownloader) and a default implementation (ArtworkDownloaderDefault). This will allow the Kimono project to provide its own implementation without relying on GMS dependencies. b/347963541 Change-Id: I7edd475991c7dd755aa24f313aaa890db4d5798d Co-authored-by: Colin Liang <zhongqi.liang.4u@gmail.com>
Refer to the original PR: #3707 Extract and refactor the part of the code in ArtworkLoader to a new interface ArtworkDownloader and its default implementation ArtworkDownloaderDefault, so that we could swap the implementation in Kimono to avoid GMS Extract the artwork downloading functionality from ArtworkLoader into a separate interface (ArtworkDownloader) and a default implementation (ArtworkDownloaderDefault). This will allow the Kimono project to provide its own implementation without relying on GMS dependencies. b/347963541 Change-Id: I7edd475991c7dd755aa24f313aaa890db4d5798d Co-authored-by: Colin Liang <zhongqi.liang.4u@gmail.com>
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package dev.cobalt.media; |
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.
Just wanted to double check if we need to add this file to "apk_sources.gni".
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.
Yes, we need to add the new files in the gni file, thanks for pointing this out.
The files were added in #3707 b/347963541 Change-Id: Ibab302808d5373759606898bf4c451385aed400a
The files were added in #3707 b/347963541 Change-Id: Ibab302808d5373759606898bf4c451385aed400a Co-authored-by: Colin Liang <colinliang@google.com>
Extract and refactor the part of the code in ArtworkLoader to a new interface ArtworkDownloader and its default implementation ArtworkDownloaderDefault, so that we could swap the implementation in Kimono to avoid GMS Extract the artwork downloading functionality from ArtworkLoader into a separate interface (ArtworkDownloader) and a default implementation
(ArtworkDownloaderDefault). This will allow the Kimono project to provide its own implementation without relying on GMS dependencies.
b/347963541
Change-Id: I7edd475991c7dd755aa24f313aaa890db4d5798d