-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/introduce-player-adapter' into late-player-init…
…ialization # Conflicts: # conviva/src/main/java/com/bitmovin/analytics/conviva/ConvivaAnalyticsIntegration.java # conviva/src/main/java/com/bitmovin/analytics/conviva/DefaultPlayerAdapter.java # conviva/src/main/java/com/bitmovin/analytics/conviva/ssai/DefaultPlaybackInfoProvider.java # conviva/src/main/java/com/bitmovin/analytics/conviva/ssai/DefaultPlayerAdapter.java # conviva/src/main/java/com/bitmovin/analytics/conviva/ssai/DefaultSsaiApi.java # conviva/src/test/kotlin/com/bitmovin/analytics/conviva/ssai/DefaultSsaiApiTest.kt
- Loading branch information
Showing
6 changed files
with
50 additions
and
10 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
32 changes: 32 additions & 0 deletions
32
conviva/src/main/java/com/bitmovin/analytics/conviva/PlayerAdapter.java
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,32 @@ | ||
package com.bitmovin.analytics.conviva; | ||
|
||
import com.bitmovin.analytics.conviva.helper.WithEventEmitter; | ||
import com.conviva.sdk.ConvivaSdkConstants; | ||
|
||
import java.util.HashMap; | ||
|
||
public interface PlayerAdapter { | ||
ConvivaSdkConstants.PlayerState getPlayerState(); | ||
|
||
HashMap<String, Object[]> getPlaybackVideoData(); | ||
|
||
boolean isAd(); | ||
|
||
String getStreamTitle(); | ||
|
||
String getStreamType(); | ||
|
||
String getStreamUrl(); | ||
|
||
long getPlayHeadTimeMillis(); | ||
|
||
boolean isLive(); | ||
|
||
double getDuration(); | ||
|
||
void withEventEmitter(WithEventEmitter withEventEmitter); | ||
|
||
boolean isPaused(); | ||
|
||
boolean isPlaying(); | ||
} |
8 changes: 8 additions & 0 deletions
8
conviva/src/main/java/com/bitmovin/analytics/conviva/helper/WithEventEmitter.java
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,8 @@ | ||
package com.bitmovin.analytics.conviva.helper; | ||
|
||
import com.bitmovin.player.api.event.Event; | ||
import com.bitmovin.player.api.event.JavaEventEmitter; | ||
|
||
public interface WithEventEmitter { | ||
void call(JavaEventEmitter<Event> player); | ||
} |
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