Skip to content

Live SDK 3.0.5

Choose a tag to compare

@jerry-hansol jerry-hansol released this 06 Nov 15:11
6cd5a7f

Live SDK 3.0.5

No SDK sources — AAR / POM artifacts only.

What's changed

This release makes fullscreen PIP consistent, adds a floating preview and a campaign list API, and keeps playback running when the user changes.

Added

  • ShoplivePlayer.startPreview starts a muted floating preview in one call; expanding it to fullscreen unmutes it.
  • ShoplivePlayerAPI.getCampaigns returns the campaign list for a ShopliveCampaignListRequest.

Changed

  • Fullscreen PIP requests (PIP button, swipe down, back press) now enter the system PIP window instead of the in-app floating window, now used only for the preview.
  • PipOptions.isInAppPipEnabled covers PIP requested inside your app and PipOptions.isOSPipEnabled covers PIP on leaving it; neither disables the other.
  • PIP from an embedded ShoplivePlayerView now opens fullscreen and enters system PIP over your screen instead of floating inside your app.
  • Shoplive.setUser and Shoplive.logout now reload only the overlay of playing players, so video and PIP continue instead of keeping the old user until ShoplivePlayer.reload.

Error codes

When Before (3.0.4) Now (3.0.5) What to do
Fullscreen PIP requested while the user turned off PIP for the app — ShopliveErrorCode.PIP_DISABLED_BY_USER (9511), not recoverable —
ShoplivePlayerAPI.getCampaigns before Shoplive.initialize — ShopliveErrorCode.NOT_INITIALIZED_ACCESS_KEY (9000), not recoverable Initialize first
ShoplivePlayerAPI.getCampaigns: access key not found or expired — ShopliveErrorCode.CUSTOM_ACCOUNT_NOT_FOUND (-200) or ShopliveErrorCode.CUSTOM_ACCOUNT_EXPIRED (-201), not recoverable Use a valid key
ShoplivePlayerAPI.getCampaigns: request failed — ShopliveErrorCode.FAILED_NETWORK (9900), recoverable Retry

Fixed

  • Audio focus is released when a player stops, and shrinking fullscreen into PIP on Android 9 and 10 no longer stalls.
  • The floating in-app PIP moves above the keyboard instead of being covered.

Gradle

maven {
    url = uri("https://sdk.shoplive.cloud/maven-repo")
}

// Declaring the entry points is enough — submodules resolve as POM transitive dependencies.
implementation("cloud.shoplive:shoplive-player-sdk:3.0.5")
implementation("cloud.shoplive:shoplive-streamer-sdk:3.0.5")

Requirements

Minimum Android API 23
compileSdk 36
Kotlin 1.9.25
Distribution Maven repository (Gradle)

Artifacts

Every .aar and .pom ships with a .sha256 companion — the same value that is
published to the Maven repository, so integrity can be checked before use.

  • cloud.shoplive:shoplive-android-webrtc:3.0.5
  • cloud.shoplive:shoplive-core:3.0.5
  • cloud.shoplive:shoplive-player-sdk:3.0.5
  • cloud.shoplive:shoplive-rootencoder:3.0.5
  • cloud.shoplive:shoplive-streamer-sdk:3.0.5

Build provenance

  • Source: matrix-sdk-android@6b914b2561279351e14e6670b056b959e7c95feb
  • Line: international
  • Tag: 3.0.5