-
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.
Add support for ConsumptionReporting location property and add events…
… to restructure MediaStreamHandler
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
12 changes: 11 additions & 1 deletion
12
...src/main/java/com/fivegmag/a5gmscommonlibrary/eventbus/MediaStreamHandlerMessageEvents.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,4 +1,14 @@ | ||
package com.fivegmag.a5gmscommonlibrary.eventbus | ||
|
||
import androidx.media3.exoplayer.analytics.AnalyticsListener | ||
import androidx.media3.exoplayer.source.MediaLoadData | ||
|
||
class DownstreamFormatChangedEvent(val mediaLoadData: MediaLoadData) | ||
class DownstreamFormatChangedEvent( | ||
val eventTime: AnalyticsListener.EventTime, | ||
val mediaLoadData: MediaLoadData | ||
) | ||
|
||
class PlaybackStateChangedEvent( | ||
val eventTime: AnalyticsListener.EventTime, | ||
val playbackState: String | ||
) |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/fivegmag/a5gmscommonlibrary/models/MessageModels.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.fivegmag.a5gmscommonlibrary.models | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
data class PlaybackRequest( | ||
val entryPoints: ArrayList<EntryPoint>, | ||
val playbackConsumptionReportingConfiguration: PlaybackConsumptionReportingConfiguration | ||
) : Parcelable | ||
|
||
@Parcelize | ||
data class PlaybackConsumptionReportingConfiguration( | ||
var accessReporting : Boolean? = false, | ||
var locationReporting : Boolean? = false | ||
) : Parcelable |
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