fix(android): app crash at boot with old arch (#4022)

* perf: ensure we do not provide callback to native if no callback provided from app

* chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size

* chore: improve issue template

* fix(android): avoid video view flickering at playback startup

* fix: ensure player doesn't start when view is unmounted

* Fix/ensure view drop stop playback startup (#3875)

* fix: ensure player doesn't start when view is unmounted

* chore: fix app boot due to missing registered events

* chore: fix linter

* chore: fix build

* fix: handle code review feedbacks

* chore: revert previous change to handle only necessary fix
This commit is contained in:
Olivier Bouillet 2024-07-22 10:56:58 +02:00 committed by GitHub
parent ffbc977ff9
commit 1ee5811c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,7 @@ enum class EventTypes(val eventName: String) {
fun toMap() = fun toMap() =
mutableMapOf<String, Any>().apply { mutableMapOf<String, Any>().apply {
EventTypes.values().toList().forEach { eventType -> EventTypes.values().toList().forEach { eventType ->
put("top${eventType.eventName.removePrefix("on")}", mapOf("registrationName" to eventType.eventName)) put("top${eventType.eventName.removePrefix("on")}", hashMapOf("registrationName" to eventType.eventName))
} }
} }
} }