Skip to content

Commit 2f1a84b

Browse files
committed
fix(ios): report Ti.Media.VideoPlayer.error event with all typical error properties
1 parent bb30c70 commit 2f1a84b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iphone/Classes/TiMediaVideoPlayerProxy.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ - (void)handlePlayerErrorNotification:(NSNotification *)note
815815
_playbackState = TiVideoPlayerPlaybackStateInterrupted;
816816

817817
if ([self_hasListeners:@"error"]) {
818-
NSDictionary *event = [NSDictionarydictionaryWithObject:[error localizedDescription] forKey:@"error"];
818+
NSDictionary *event = [TiUtils dictionaryWithCode:[error code] message:[TiUtils messageFromError:error]];
819819
[selffireEvent:@"error"withObject:event];
820820
}
821821
}

0 commit comments

Comments
 (0)
close