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

update to target SDK 35 and dependencies #109

Merged
merged 3 commits into from
Dec 11, 2024
Merged

update to target SDK 35 and dependencies #109

merged 3 commits into from
Dec 11, 2024

Conversation

ashnohe
Copy link
Contributor

@ashnohe ashnohe commented Dec 9, 2024

No description provided.

@ashnohe ashnohe requested a review from calren December 9, 2024 20:52
@ashnohe
Copy link
Contributor Author

ashnohe commented Dec 9, 2024

@calren while updating dependencies, it looks like there was an API change for DefaultPreloadManager.Status. Can you confirm that STAGE_LOADED_FOR_DURATION_MS is the right one to use?

@@ -160,7 +160,7 @@ private constructor(
class PreloadStatusControl : TargetPreloadStatusControl<Int> {
override fun getTargetPreloadStatus(rankingData: Int): DefaultPreloadManager.Status {
// By default preload first 3 seconds of the video
return DefaultPreloadManager.Status(STAGE_LOADED_TO_POSITION_MS, 3000L)
return DefaultPreloadManager.Status(STAGE_LOADED_FOR_DURATION_MS, 3000L)
Copy link
Contributor

Choose a reason for hiding this comment

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

@MayuriKhinvasara can you comment on whether this is the right update after updating to the latest media3 release?

Copy link
Contributor

Choose a reason for hiding this comment

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

There are a couple of changes to PreloadManager when updating to media3 1.5. We would have to test them before commits.

@MayuriKhinvasara
Copy link
Contributor

MayuriKhinvasara commented Dec 10, 2024

@calren while updating dependencies, it looks like there was an API change for DefaultPreloadManager.Status. Can you confirm that STAGE_LOADED_FOR_DURATION_MS is the right one to use?

Can we not include to update the media3 lib to 1.5 ? I can take a separate AI for that (#112). We expect a couple of changes to functioning of PreloadManager in media3 upgrade to 1.5. Will have to test out all those use cases before blanket update

@ashnohe ashnohe merged commit 5263dff into main Dec 11, 2024
1 check passed
@ashnohe ashnohe deleted the ashnohe_update branch December 11, 2024 21:21
ashnohe added a commit that referenced this pull request Dec 11, 2024
* update to target SDK 35 and dependencies

* revert media dependency
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.

4 participants