Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
> - 🏠 Internal
> - 💅 Polish

## v1.13.2 (2026-03-03)

* 🐛 Fixed `PictureInPictureButton` to only be shown when the backing `THEOplayerView` has a valid `PiPConfiguration`. ([#81](https://github.com/THEOplayer/android-ui/pull/81))

## v1.13.1 (2026-01-05)

* 🐛 Changed THEOplayer to be an `api` dependency in Gradle. ([#76](https://github.com/THEOplayer/android-ui/pull/76))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fun MainContent() {
val context = LocalContext.current
val theoplayerView = remember(context) {
val config = THEOplayerConfig.Builder().apply {
pipConfiguration(PipConfiguration.Builder().build())
pip(PipConfiguration.Builder().build())
}.build()
THEOplayerView(context, config).apply {
// Add ads integration through Google IMA
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ org.gradle.configuration-cache=true
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
# The version of the THEOplayer Open Video UI for Android.
version=1.13.1
version=1.13.2
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ androidx-junit = "1.3.0"
androidx-espresso = "3.7.0"
androidx-mediarouter = "1.8.1"
dokka = "2.0.0"
theoplayer = { prefer="10.0.0", strictly = "[5.0, 11.0)" }
theoplayer = { prefer="10.11.0", strictly = "[5.0, 11.0)" }

[libraries]
androidx-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "ktx" }
Expand Down
3 changes: 1 addition & 2 deletions scripts/github_changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ if (!version) {
const changelogPath = path.resolve(__dirname, "../CHANGELOG.md");
const changelog = fs.readFileSync(changelogPath, "utf-8");
const headingStart = "## ";
// Find block with current version
const block = changelog
.split(headingStart)
.find((block) => block.startsWith(`v${version}`))
.trim();
let lines = block.split("\n");
// Remove version
// Remove version heading
lines.splice(0, 1);

console.log(lines.join("\n").trim());
4 changes: 3 additions & 1 deletion ui/src/main/java/com/theoplayer/android/ui/Player.kt
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ internal class PlayerImpl(override val theoplayerView: THEOplayerView?) : Player
private set

override val pictureInPictureSupported: Boolean by lazy {
(theoplayerView?.context as? Activity)?.supportsPictureInPictureMode() ?: false
val theoplayerView = theoplayerView ?: return@lazy false
val activity = theoplayerView.context as? Activity ?: return@lazy false
theoplayerView.piPManager != null && activity.supportsPictureInPictureMode()
}

override fun enterPictureInPicture(pipType: PiPType) {
Expand Down
Loading