Skip to content

Commit

Permalink
Fix default value
Browse files Browse the repository at this point in the history
As this config is not existing on Native, we have
to set a default value directly here

Because it may not be there in the Json
  • Loading branch information
123mpozzi committed Nov 6, 2024
1 parent 8d2fdb3 commit 2f09d63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class PlayerModule(context: ReactApplicationContext) : BitmovinBaseModule(contex
val analyticsConfig = analyticsConfigJson?.toAnalyticsConfig()
val defaultMetadata = analyticsConfigJson?.getMap("defaultMetadata")?.toAnalyticsDefaultMetadata()
val enableMediaSession = playerConfigJson?.getMap("mediaControlConfig")
?.toMediaControlConfig()?.isEnabled
?.toMediaControlConfig()?.isEnabled ?: true

val networkConfig = networkNativeId?.let { networkModule.getConfig(it) }
if (networkConfig != null) {
Expand Down

0 comments on commit 2f09d63

Please sign in to comment.