Skip to content

Live SDK 3.0.3

Choose a tag to compare

@jerry-hansol jerry-hansol released this 16 Oct 09:28

Shoplive iOS SDK 3.0.3

No SDK sources — XCFramework artifacts only.

What's changed

A feature and fix release for the player and the streamer: preview playback, an in-app Picture in Picture option, and an optional web page on the streamer screen.

Added

  • ShoplivePlayerConfiguration.type takes ShoplivePlayerType (.live or .preview). .preview plays the lower-resolution preview stream when the campaign has one, and ShoplivePlayerConfiguration.preview now uses it.
  • pip.isDragOutToCloseEnabled (default true) controls whether dragging the in-app Picture in Picture window off the screen closes it. Set false to make it snap back, so only the close button or close() ends it.
  • ShopliveStreamerViewController(campaignKey:webPageURL:) adds your own web page next to the streamer screen. Swipe left to open it. The existing init(campaignKey:) still works and shows no web page.
  • ShopliveError.rawCode returns the original numeric error code, including when code is .unknown.
  • ShopliveCouponResult and ShopliveCustomActionResult now default status to .hide and alertType to .alert.

Changed

  • Playback that starts muted no longer interrupts audio from other apps; unmuting switches to normal playback audio.

Fixed

  • reload() while in-app Picture in Picture is active keeps the Picture in Picture window instead of leaving sound with no player.
  • A ShoplivePlayerViewController that could not be presented no longer plays sound with nothing on screen. It starts when it appears, or stops if .pip could not start.

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/shoplive/shoplive-sdk-ios", from: "3.0.3")
],
targets: [
    .target(
        name: "YourApp",
        dependencies: [
            .product(name: "ShoplivePlayerSDK", package: "shoplive-sdk-ios"),
            .product(name: "ShopliveStreamerSDK", package: "shoplive-sdk-ios")
        ]
    )
]
import ShoplivePlayerSDK

Shoplive.initialize(.init(accessKey: "{ACCESS_KEY}"))
Shoplive.setUser(.guest)

Requirements

Minimum iOS 15.0
Xcode 15.0+ (swift-tools-version 5.9)
Distribution Swift Package Manager (binary targets)

Artifacts

  • ShoplivePlayerSDK.xcframework
  • ShopliveStreamerSDK.xcframework
  • ShopliveCore.xcframework
  • ShopLiveWebRTCHelperSDK.xcframework
  • WebRTC.xcframework

Build provenance

  • Source: matrix-sdk-ios@d1486487371386c2e0636a5d1c55e29c78e6ec58
  • Line: international
  • Tag: 3.0.3