Skip to content

Commit

Permalink
Update to version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Willowrod committed Dec 8, 2021
1 parent ced9297 commit a7ef665
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions Source/StreamSDKPlayKit/Player/PlayKit/AMGPlayKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -297,7 +297,7 @@ import AVKit
}
}

func setMaximumBitrate(bitrate: Double){
public func setMaximumBitrate(bitrate: Double){
player?.settings.network.preferredPeakBitRate = bitrate
}

Expand Down Expand Up @@ -330,14 +330,22 @@ 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
extraParams["param\(param.id)"] = param.value
}
youboraOptions["extraParams"] = extraParams
}

return AnalyticsConfig(params: youboraOptions) //config //
}

Expand Down
2 changes: 1 addition & 1 deletion StreamAMGSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit a7ef665

Please sign in to comment.