Skip to content

Commit

Permalink
Add video width and height on activeQualityChange event for video
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhaevre committed Jun 28, 2024
1 parent 8220d00 commit dc336d0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ios/THEOplayerRCTMediaTrackEventHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ class THEOplayerRCTMediaTrackEventHandler {
"uid": identifier,
"name": label,
"label": label,
"available": true
"available": true,
"width": player.videoWidth,
"height": player.videoHeight,
//"frameRate": 0, // not available on iOS SDK
//"firstFrame": 0 // not available on iOS SDK

]
])
}
Expand All @@ -273,7 +278,8 @@ class THEOplayerRCTMediaTrackEventHandler {
"uid": identifier,
"name": label,
"label": label,
"available": true
"available": true,
//"audioSamplingRate": 0 // not available on iOS SDK
]
])
}
Expand Down

0 comments on commit dc336d0

Please sign in to comment.