From a7ef665bbedf17a99db386f63508c9f6492b0876 Mon Sep 17 00:00:00 2001 From: Mike Hall Date: Wed, 8 Dec 2021 08:29:28 +0000 Subject: [PATCH] Update to version 1.0.2 --- .../Player/PlayKit/AMGPlayKit.swift | 14 +++++++++++--- StreamAMGSDK.podspec | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Source/StreamSDKPlayKit/Player/PlayKit/AMGPlayKit.swift b/Source/StreamSDKPlayKit/Player/PlayKit/AMGPlayKit.swift index 059720f..7675669 100644 --- a/Source/StreamSDKPlayKit/Player/PlayKit/AMGPlayKit.swift +++ b/Source/StreamSDKPlayKit/Player/PlayKit/AMGPlayKit.swift @@ -24,7 +24,7 @@ import AVKit The SDK, at it's most basic, is a UIView, instantiated either programatically, or via Storyboard, that acts as a single point of reference for all Kaltura PlayKit functionality */ -@objc public class AMGPlayKit: UIView, AMGPlayerDelegate { // GCKSessionManagerListener, GCKRemoteMediaClientListener, GCKRequestDelegate, +@objc public class AMGPlayKit: UIView, AMGPlayerDelegate { var playerView: PlayerView? = nil public var player: Player! @@ -297,7 +297,7 @@ import AVKit } } - func setMaximumBitrate(bitrate: Double){ + public func setMaximumBitrate(bitrate: Double){ player?.settings.network.preferredPeakBitRate = bitrate } @@ -330,6 +330,15 @@ import AVKit if let name = analyticsConfiguration.userName { youboraOptions["username"] = name } + + if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String { + youboraOptions["appReleaseVersion"] = version + } + + if let name = Bundle.main.infoDictionary?["CFBundleName"] as? String { + youboraOptions["appName"] = name + } + if !analyticsConfiguration.youboraParameters.isEmpty { var extraParams: [String: Any] = [:] analyticsConfiguration.youboraParameters.forEach {param in @@ -337,7 +346,6 @@ import AVKit } youboraOptions["extraParams"] = extraParams } - return AnalyticsConfig(params: youboraOptions) //config // } diff --git a/StreamAMGSDK.podspec b/StreamAMGSDK.podspec index 80e5ec4..8d3a86b 100644 --- a/StreamAMGSDK.podspec +++ b/StreamAMGSDK.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |spec| spec.name = "StreamAMGSDK" - spec.version = "1.0.1" + spec.version = "1.0.2" spec.summary = "Stream AMG SDK" spec.swift_versions = "5"