Skip to content

Commit 3409399

Browse files
authored
fix: AbstractMethodError with some integrations (#84) (#85)
1 parent f0bbd4b commit 3409399

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/main/java/com/mux/stats/sdk/muxstats/MuxDataSdk.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ abstract class MuxDataSdk<Player, PlayerView : View> @JvmOverloads protected con
246246
@Suppress("MemberVisibilityCanBePrivate")
247247
protected fun pxToDp(px: Int): Int = convertPxToDp(px, uiDelegate.displayDensity())
248248

249+
// Mux's SDKs set this dimension only during renditionchange so our impl here can return null
250+
override fun getSourceCodec(): String? = null
249251
override fun getCurrentPosition(): Long = collector?.playbackPositionMills ?: 0L
250252
override fun getMimeType() = collector?.mimeType
251253
override fun getSourceWidth(): Int? = collector?.sourceWidth

0 commit comments

Comments
 (0)