We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceaed43 commit dcc117fCopy full SHA for dcc117f
ios/ReactNativeAudioToolkit/ReactNativeAudioToolkit/AudioPlayer.m
@@ -232,7 +232,7 @@ - (NSURL *)findUrlForPath:(NSString *)path {
232
// Callback when ready / failed
233
if (player.currentItem.status == AVPlayerStatusReadyToPlay) {
234
player.automaticallyWaitsToMinimizeStalling = false;
235
- callback(@[[NSNull null]]);
+ callback(@[[NSNull null],@{@"duration": @(CMTimeGetSeconds(player.currentItem.asset.duration) * 1000)}]);
236
} else {
237
NSDictionary* dict = [Helpers errObjWithCode:@"preparefail"
238
withMessage:[NSString stringWithFormat:@"Preparing player failed"]];
0 commit comments