Skip to content

Commit

Permalink
Add support for ConsumptionReporting location property and add events…
Browse files Browse the repository at this point in the history
… to restructure MediaStreamHandler
  • Loading branch information
dsilhavy committed Nov 6, 2023
1 parent 4624977 commit 70cb574
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
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
)
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data class ServiceAccessInformation(
val provisioningSessionId : String,
val provisioningSessionType: String?,
val streamingAccess: StreamingAccess,
var clientConsumptionReportingConfiguration: ClientConsumptionReportingConfiguration
var clientConsumptionReportingConfiguration: ClientConsumptionReportingConfiguration?
) : Parcelable

@Parcelize
Expand Down

0 comments on commit 70cb574

Please sign in to comment.