Repository navigation
Live SDK 3.0.3
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.typetakesShoplivePlayerType(.liveor.preview)..previewplays the lower-resolution preview stream when the campaign has one, andShoplivePlayerConfiguration.previewnow uses it.pip.isDragOutToCloseEnabled(defaulttrue) controls whether dragging the in-app Picture in Picture window off the screen closes it. Setfalseto make it snap back, so only the close button orclose()ends it.ShopliveStreamerViewController(campaignKey:webPageURL:)adds your own web page next to the streamer screen. Swipe left to open it. The existinginit(campaignKey:)still works and shows no web page.ShopliveError.rawCodereturns the original numeric error code, including whencodeis.unknown.ShopliveCouponResultandShopliveCustomActionResultnow defaultstatusto.hideandalertTypeto.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
ShoplivePlayerViewControllerthat could not be presented no longer plays sound with nothing on screen. It starts when it appears, or stops if.pipcould 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.xcframeworkShopliveStreamerSDK.xcframeworkShopliveCore.xcframeworkShopLiveWebRTCHelperSDK.xcframeworkWebRTC.xcframework
Build provenance
- Source:
matrix-sdk-ios@d1486487371386c2e0636a5d1c55e29c78e6ec58 - Line:
international - Tag:
3.0.3