forked from kaltura/playkit-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Analytics report event added. Will be dispatched every time the corre… (
kaltura#193) * Analytics report event added. Will be dispatched every time the corresponding analytics report sent to backend. * Report events renamed to REPORT_SENT. Removed unnecessary LogEvent from analytics
- Loading branch information
Showing
11 changed files
with
193 additions
and
28 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
playkit/src/main/java/com/kaltura/playkit/plugins/KalturaLiveStatsEvent.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,33 @@ | ||
package com.kaltura.playkit.plugins; | ||
|
||
import com.kaltura.playkit.PKEvent; | ||
|
||
/** | ||
* Created by anton.afanasiev on 27/03/2017. | ||
*/ | ||
|
||
public class KalturaLiveStatsEvent implements PKEvent { | ||
|
||
public enum Type { | ||
REPORT_SENT | ||
} | ||
|
||
public static class KalturaLiveStatsReport extends KalturaLiveStatsEvent { | ||
|
||
private long bufferTime; | ||
|
||
public KalturaLiveStatsReport(long bufferTime) { | ||
this.bufferTime = bufferTime; | ||
} | ||
|
||
public long getBufferTime() { | ||
return bufferTime; | ||
} | ||
} | ||
|
||
|
||
@Override | ||
public Enum eventType() { | ||
return Type.REPORT_SENT; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
playkit/src/main/java/com/kaltura/playkit/plugins/KalturaStatsEvent.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,33 @@ | ||
package com.kaltura.playkit.plugins; | ||
|
||
import com.kaltura.playkit.PKEvent; | ||
|
||
/** | ||
* Created by anton.afanasiev on 27/03/2017. | ||
*/ | ||
|
||
public class KalturaStatsEvent implements PKEvent{ | ||
|
||
public enum Type { | ||
REPORT_SENT | ||
} | ||
|
||
public static class KalturaStatsReport extends KalturaStatsEvent { | ||
|
||
private String reportedEventName; | ||
|
||
public KalturaStatsReport(String reportedEventName) { | ||
this.reportedEventName = reportedEventName; | ||
} | ||
|
||
public String getReportedEventName() { | ||
return reportedEventName; | ||
} | ||
} | ||
|
||
|
||
@Override | ||
public Enum eventType() { | ||
return Type.REPORT_SENT; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
playkit/src/main/java/com/kaltura/playkit/plugins/PhoenixAnalyticsEvent.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,33 @@ | ||
package com.kaltura.playkit.plugins; | ||
|
||
import com.kaltura.playkit.PKEvent; | ||
|
||
/** | ||
* Created by anton.afanasiev on 27/03/2017. | ||
*/ | ||
|
||
public class PhoenixAnalyticsEvent implements PKEvent { | ||
|
||
public enum Type { | ||
REPORT_SENT | ||
} | ||
|
||
public static class PhoenixAnalyticsReport extends PhoenixAnalyticsEvent { | ||
|
||
private String reportedEventName; | ||
|
||
public PhoenixAnalyticsReport(String reportedEventName) { | ||
this.reportedEventName = reportedEventName; | ||
} | ||
|
||
public String getReportedEventName() { | ||
return reportedEventName; | ||
} | ||
} | ||
|
||
|
||
@Override | ||
public Enum eventType() { | ||
return Type.REPORT_SENT; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
playkit/src/main/java/com/kaltura/playkit/plugins/TVPapiAnalyticsEvent.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,33 @@ | ||
package com.kaltura.playkit.plugins; | ||
|
||
import com.kaltura.playkit.PKEvent; | ||
|
||
/** | ||
* Created by anton.afanasiev on 27/03/2017. | ||
*/ | ||
|
||
public class TVPapiAnalyticsEvent implements PKEvent { | ||
|
||
public enum Type { | ||
REPORT_SENT | ||
} | ||
|
||
public static class TVPapiAnalyticsReport extends TVPapiAnalyticsEvent { | ||
|
||
private String reportedEventName; | ||
|
||
public TVPapiAnalyticsReport(String reportedEventName) { | ||
this.reportedEventName = reportedEventName; | ||
} | ||
|
||
public String getReportedEventName() { | ||
return reportedEventName; | ||
} | ||
} | ||
|
||
|
||
@Override | ||
public Enum eventType() { | ||
return Type.REPORT_SENT; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
playkit/src/main/java/com/kaltura/playkit/plugins/Youbora/YouboraEvent.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,33 @@ | ||
package com.kaltura.playkit.plugins.Youbora; | ||
|
||
import com.kaltura.playkit.PKEvent; | ||
|
||
/** | ||
* Created by anton.afanasiev on 27/03/2017. | ||
*/ | ||
|
||
public class YouboraEvent implements PKEvent { | ||
|
||
public enum Type { | ||
REPORT_SENT | ||
} | ||
|
||
public static class YouboraReport extends YouboraEvent{ | ||
|
||
private String reportedEventName; | ||
|
||
public YouboraReport(String reportedEventName) { | ||
this.reportedEventName = reportedEventName; | ||
} | ||
|
||
public String getReportedEventName() { | ||
return reportedEventName; | ||
} | ||
} | ||
|
||
|
||
@Override | ||
public Enum eventType() { | ||
return Type.REPORT_SENT; | ||
} | ||
} |
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