Skip to content

Commit ec67456

Browse files
authored
Feature/location reporting (#21)
* Add support for ConsumptionReporting location property and add events to restructure MediaStreamHandler * Add an event for cell info updates
1 parent 4624977 commit ec67456

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
package com.fivegmag.a5gmscommonlibrary.eventbus
2+
3+
import android.telephony.CellInfo
4+
import androidx.media3.exoplayer.analytics.AnalyticsListener
25
import androidx.media3.exoplayer.source.MediaLoadData
36

4-
class DownstreamFormatChangedEvent(val mediaLoadData: MediaLoadData)
7+
class DownstreamFormatChangedEvent(
8+
val eventTime: AnalyticsListener.EventTime,
9+
val mediaLoadData: MediaLoadData
10+
)
11+
12+
class PlaybackStateChangedEvent(
13+
val eventTime: AnalyticsListener.EventTime,
14+
val playbackState: String
15+
)
16+
17+
class CellInfoUpdatedEvent(
18+
val cellInfoList: MutableList<CellInfo>
19+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.fivegmag.a5gmscommonlibrary.models
2+
3+
import android.os.Parcelable
4+
import kotlinx.parcelize.Parcelize
5+
6+
@Parcelize
7+
data class PlaybackRequest(
8+
val entryPoints: ArrayList<EntryPoint>,
9+
val playbackConsumptionReportingConfiguration: PlaybackConsumptionReportingConfiguration
10+
) : Parcelable
11+
12+
@Parcelize
13+
data class PlaybackConsumptionReportingConfiguration(
14+
var accessReporting : Boolean? = false,
15+
var locationReporting : Boolean? = false
16+
) : Parcelable

app/src/main/java/com/fivegmag/a5gmscommonlibrary/models/ServiceAccessInformation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ data class ServiceAccessInformation(
1717
val provisioningSessionId : String,
1818
val provisioningSessionType: String?,
1919
val streamingAccess: StreamingAccess,
20-
var clientConsumptionReportingConfiguration: ClientConsumptionReportingConfiguration
20+
var clientConsumptionReportingConfiguration: ClientConsumptionReportingConfiguration?
2121
) : Parcelable
2222

2323
@Parcelize

0 commit comments

Comments
 (0)