-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #FEM-1493 * Changed `PlayerEvent.SourceSelected` to send `MediaSource` object instead of just content url. * Changed file id param to be received from the media source and not from config. * Added phoenix and tvpapi analytics plugin config. * Renamed OTTAnalyticsConfig to OTTAnalyticsPluginConfig * Added @objc attribute to config initializers
- Loading branch information
1 parent
683d2c6
commit 3317496
Showing
11 changed files
with
160 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// OTTAnalyticsConfig.swift | ||
// Pods | ||
// | ||
// Created by Gal Orlanczyk on 25/06/2017. | ||
// | ||
// | ||
|
||
import Foundation | ||
|
||
@objc public class OTTAnalyticsPluginConfig: NSObject { | ||
|
||
let baseUrl: String | ||
let timerInterval: TimeInterval | ||
|
||
init(baseUrl: String, timerInterval: TimeInterval) { | ||
self.baseUrl = baseUrl | ||
self.timerInterval = timerInterval | ||
} | ||
} | ||
|
||
@objc public class PhoenixAnalyticsPluginConfig: OTTAnalyticsPluginConfig { | ||
|
||
let ks: String | ||
let partnerId: Int | ||
|
||
@objc public init(baseUrl: String, timerInterval: TimeInterval, ks: String, partnerId: Int) { | ||
self.ks = ks | ||
self.partnerId = partnerId | ||
super.init(baseUrl: baseUrl, timerInterval: timerInterval) | ||
} | ||
} | ||
|
||
@objc public class TVPAPIAnalyticsPluginConfig: OTTAnalyticsPluginConfig { | ||
|
||
let initObject: [String: Any] | ||
|
||
@objc public init(baseUrl: String, timerInterval: TimeInterval, initObject: [String: Any]) { | ||
self.initObject = initObject | ||
super.init(baseUrl: baseUrl, timerInterval: timerInterval) | ||
} | ||
} |
Oops, something went wrong.