The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Release v3.28.0
25 weeks ago
New in this version:
* Add an option to set preferredMaximumResolution (in player settings)
*
How to use:
case is KPPlayerEvent.CanPlay:
player.settings.network.preferredMaximumResolution = CGSize(width: 1280, height: 534)
Cocoapods install
pod 'PlayKit', '~> 3.28.0’
Release v3.28.0 · kaltura/playkit-ios
## New in this version:
- Now you can build your own implementation of FairPlayLicenseProvider and set it to the player.
`getContentId(request: URLRequest)` added to `FairPlayLicenseProvider` protocol (#470)
**How to use:**
```Swift
player.settings.fairPlayLicenseProvider = MyFPSLicenseProvider()
class MyFPSLicenseProvider: FairPlayLicenseProvider {
func getContentId(request: URLRequest) -> String? {
// Use request.url value to obtain content ID
return "CONTENT ID"
}
func getLicense(spc: Data,
contentId: String,
requestParams: PlayKit.PKRequestParams,
callback: @escaping (Data?, TimeInterval, Error?) -> Void) {
// Implementation of FP license request to license server
callback(license, // FP license as Data. FairPlay Streaming Key Response Data
86400, // License expiration Time Interval
nil) // Error
}
```
## Cocoapods install
`pod 'PlayKit', '~> 3.27.2'`
## New in this version:
- Swift Package added
## Cocoapods install
`pod 'PlayKit', '~> 3.27.1'`
## New in this version:
- Fixed `TimedMetadata` handling with updated logic (#468)
- `codecDescription` added to `PlayerEvent.VideoTrackChanged` (#466)
## Cocoapods install
`pod 'PlayKit', '~> 3.27.0'`
## New in this version:
- Added init() function to AnalyticsConfig class (#464)
- Added missing clickThroughUrl exposure in PKEvent. (#467)
## Cocoapods install
`pod 'PlayKit', '~> 3.26.1'`
## Changes from [v3.25.1](https://github.com/kaltura/playkit-ios/releases/tag/v3.25.1)
* Playing Audio from a Video Asset in the Background (#459)
* Seek to live edge API added. `seekToLiveEdge()` (#456 )
* AVPlayer preventsDisplaySleepDuringVideo settings parameter added (#458, #460)
`kalturaPlayer.settings.preventsDisplaySleepDuringVideoPlayback = false`
* Minor code fixes (#457)
##
# Cocoapods install
`pod 'PlayKit', '~> 3.26.0`
## Changes from [v3.24.0](https://github.com/kaltura/playkit-ios/releases/tag/v3.24.0)
* PKMediaEntry and PKMediaSource extended with NSCopying (#449)
* Added Vertical and horizontal captions positioning. (#453)
Example:
```swift
// Bottom right corner
kalturaPlayer.settings.textTrackStyling.setOrthogonalLinePositionPercentage(95)
kalturaPlayer.settings.textTrackStyling.setTextPositionPercentage(95)
// Top left corner
kalturaPlayer.settings.textTrackStyling.setOrthogonalLinePositionPercentage(5)
kalturaPlayer.settings.textTrackStyling.setTextPositionPercentage(5)
```
##
# Cocoapods install
`pod 'PlayKit', '~> 3.25.0`
## Changes from [v3.23.0](https://github.com/kaltura/playkit-ios/releases/tag/v3.23.0)
* Playlist support. (#435)
##
# Cocoapods install
`pod 'PlayKit', '~> 3.24.0`
## Changes from [v3.22.0](https://github.com/kaltura/playkit-ios/releases/tag/v3.22.0)
* Fix for renewing the key for a DRM media (#443)
* Primary + Redirect token reports event - For BP (#444) & (#445)
##
# Cocoapods install
`pod 'PlayKit', '~> 3.23.0`
## Changes from [v3.21.0](https://github.com/kaltura/playkit-ios/releases/tag/v3.21.0)
* Udrm calls now have extra data: player type, session and referrer information (#433)
* `AdEvent` now has new properties (#432):
```swift @objc public var adPlayHead: TimeInterval
@objc public var skipTimeOffset: TimeInterval
@objc public var creativeAdId: String?
@objc public var dealId: String?
@objc public var surveyUrl: String?
@objc public var traffickingParams: String?
@objc public var adIndexInPod: Int
@objc public var podCount: Int
@objc public var adPodTimeOffset: TimeInterval```
* Low-Latency HLS support (#431). Now you can specify `AVPlayerItem.automaticallyPreservesTimeOffsetFromLive` and `AVPlayerItem.configuredTimeOffsetFromLive` via `PKLowLatencySettings`
* Kava analytics report now sending for all non Kaltura partners Accounts in PlayKit (#434)
* Added integration with Youbora Smart Switch events (#429)
##
# Cocoapods install
`pod 'PlayKit', '~> 3.22.0`