Skip to content

Commit

Permalink
fix(ios): report Ti.Media.VideoPlayer.error event with all typical er…
Browse files Browse the repository at this point in the history
…ror properties
  • Loading branch information
sgtcoolguy committed Jan 5, 2021
1 parent bb30c70 commit 2f1a84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/Classes/TiMediaVideoPlayerProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ - (void)handlePlayerErrorNotification:(NSNotification *)note
_playbackState = TiVideoPlayerPlaybackStateInterrupted;

if ([self _hasListeners:@"error"]) {
NSDictionary *event = [NSDictionary dictionaryWithObject:[error localizedDescription] forKey:@"error"];
NSDictionary *event = [TiUtils dictionaryWithCode:[error code] message:[TiUtils messageFromError:error]];
[self fireEvent:@"error" withObject:event];
}
}
Expand Down

0 comments on commit 2f1a84b

Please sign in to comment.