tv-samples
tv-samples copied to clipboard
Migrate to Jetpack Media3
@pflammertsma or to whom it may concern :)
I updated this in the fork to Media3 1.0.0-beta01, so it is included in this PR as well. Looks like a good time now to review/merge this PR into the media3 branch. IMO we can also merge into the main branch as the MediaSession API pieces of this app are not too complicated. Up to you regarding the timing of merging into main of course.
I'm still going through the review, but one curiosity: why have some of the tests in CastHelperTest been removed?
Because the method that is under test there have been removed. The underlying API that we called there is not available for Kotlin anymore.
Please see internal bug ref: b/237992143
I added a commit that changes the life-cycle behaviour as discussed. I made an additional commit on purpose to call this change out so developers can see this specific change to do the right thing.