-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for new ssai methods (#384)
Co-authored-by: petereder <104372727+petereder@users.noreply.github.com> Co-authored-by: Peter Eder <peter.eder@bitmovin.com>
- Loading branch information
1 parent
4051390
commit d3f7201
Showing
5 changed files
with
41 additions
and
0 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
6 changes: 6 additions & 0 deletions
6
collector/src/main/java/com/bitmovin/analytics/api/ssai/SsaiAdBreakMetadata.kt
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package com.bitmovin.analytics.api.ssai | ||
|
||
/** | ||
* Provides Metadata for the ad break | ||
*/ | ||
data class SsaiAdBreakMetadata( | ||
/** | ||
* Position of the ad break. Also called Ad Placement Type | ||
*/ | ||
val adPosition: SsaiAdPosition? = null, | ||
) |
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
4 changes: 4 additions & 0 deletions
4
collector/src/main/java/com/bitmovin/analytics/api/ssai/SsaiAdPosition.kt
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
16 changes: 16 additions & 0 deletions
16
collector/src/main/java/com/bitmovin/analytics/api/ssai/SsaiApi.kt
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 |
---|---|---|
@@ -1,9 +1,25 @@ | ||
package com.bitmovin.analytics.api.ssai | ||
|
||
interface SsaiApi { | ||
/** | ||
* Indicates the start of an ad break with the given metadata. | ||
* Must be called before `adStart`, otherwise calls to `adStart` will be no-op. | ||
* | ||
* @param adBreakMetadata [SsaiAdBreakMetadata] Provides metadata for the ad break | ||
*/ | ||
fun adBreakStart(adBreakMetadata: SsaiAdBreakMetadata? = null) | ||
|
||
/** | ||
* Indicates the start of an ad with the given metadata. No-op if called outside of ad break. | ||
* Implicitly closes tracking of an ad and starts tracking of a new ad. | ||
* | ||
* @param adMetadata [SsaiAdMetadata] Provides metadata for the ad | ||
*/ | ||
fun adStart(adMetadata: SsaiAdMetadata? = null) | ||
|
||
/** | ||
* Indicates the end of the ad break and wraps up the ad data collection. | ||
* No-op if no ad break is currently active. Implicitly closes tracking of the last ad. | ||
*/ | ||
fun adBreakEnd() | ||
} |