-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Fixes * fix: use real media3 SDK version (#95) ## Improvements * Add support for media3 v1.4 (#93) (#97) * feat: Handle nonfatal codec exceptions on API 21+ (#96) ## Internal lib updates * Update `android` lib 1.4.0 * Update `stats.java` lib to 8.1.0 * Remove `kt-utils` from the dependencies. It is no longer required Co-authored-by: Emily Dixon <[email protected]> Co-authored-by: GitHub <[email protected]>
- Loading branch information
1 parent
5928c53
commit d4bb41b
Showing
14 changed files
with
273 additions
and
313 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import android.os.Bundle | ||
import androidx.media3.common.util.UnstableApi | ||
import androidx.media3.exoplayer.ima.ImaServerSideAdInsertionMediaSource | ||
|
||
/* | ||
* VersionCompat.kt: Functions with different Variants for different media3 | ||
* versions. There are other version of this file for other variants. Look | ||
* in the source set defs for more details | ||
*/ | ||
|
||
object VersionCompat { | ||
@androidx.annotation.OptIn(UnstableApi::class) | ||
fun adsLoaderStateFromBundle(bundle: Bundle): ImaServerSideAdInsertionMediaSource.AdsLoader.State { | ||
return ImaServerSideAdInsertionMediaSource.AdsLoader.State.CREATOR.fromBundle(bundle) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import android.os.Bundle | ||
import androidx.media3.common.util.UnstableApi | ||
import androidx.media3.exoplayer.ima.ImaServerSideAdInsertionMediaSource | ||
|
||
/** | ||
* Functions with different Variants for different media3 versions. There are other version of this | ||
* file for other variants. See the sourceSet defs for more details | ||
* | ||
* Customers probably don't need a class like this. We have one because we support older versions of | ||
* media3, so we need variants | ||
*/ | ||
object VersionCompat { | ||
@androidx.annotation.OptIn(UnstableApi::class) | ||
fun adsLoaderStateFromBundle(bundle: Bundle): ImaServerSideAdInsertionMediaSource.AdsLoader.State { | ||
return ImaServerSideAdInsertionMediaSource.AdsLoader.State.fromBundle(bundle) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.