-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from bitmovin/feature/introduce-player-adapter
Merge `PlaybackInfoProvider` and `PlayerHelper` into `PlayerDecorator`
- Loading branch information
Showing
8 changed files
with
226 additions
and
177 deletions.
There are no files selected for viewing
31 changes: 0 additions & 31 deletions
31
conviva/src/main/java/com/bitmovin/analytics/conviva/BitmovinPlayerHelper.java
This file was deleted.
Oops, something went wrong.
227 changes: 106 additions & 121 deletions
227
conviva/src/main/java/com/bitmovin/analytics/conviva/ConvivaAnalyticsIntegration.java
Large diffs are not rendered by default.
Oops, something went wrong.
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/PlayerDecorator.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 PlayerDecorator { | ||
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
11 changes: 0 additions & 11 deletions
11
conviva/src/main/java/com/bitmovin/analytics/conviva/ssai/PlaybackInfoProvider.java
This file was deleted.
Oops, something went wrong.
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