Skip to content

Commit

Permalink
fix(android): fix onVideoLoad event field key (#4001)
Browse files Browse the repository at this point in the history
* fix(android): fix onVideoLoad event naturalSize field key

* fix(android): fix onVideoLoad event currentTime field key
  • Loading branch information
YangJonghun authored Jul 15, 2024
1 parent 05623c9 commit f82268b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ class VideoEventEmitter {
onVideoLoad = { duration, currentPosition, videoWidth, videoHeight, audioTracks, textTracks, videoTracks, trackId ->
event.dispatch(EventTypes.EVENT_LOAD) {
putDouble("duration", duration / 1000.0)
putDouble("playableDuration", currentPosition / 1000.0)
putDouble("currentTime", currentPosition / 1000.0)

val naturalSize: WritableMap = aspectRatioToNaturalSize(videoWidth, videoHeight)
putMap("seekableDuration", naturalSize)
putMap("naturalSize", naturalSize)
putString("trackId", trackId)
putArray("videoTracks", videoTracksToArray(videoTracks))
putArray("audioTracks", audioTracksToArray(audioTracks))
Expand Down

0 comments on commit f82268b

Please sign in to comment.