1 parent bb30c70 commit 2f1a84bCopy full SHA for 2f1a84b
iphone/Classes/TiMediaVideoPlayerProxy.m
@@ -815,7 +815,7 @@ - (void)handlePlayerErrorNotification:(NSNotification *)note
815
_playbackState = TiVideoPlayerPlaybackStateInterrupted;
816
817
if ([self_hasListeners:@"error"]) {
818
-NSDictionary *event = [NSDictionarydictionaryWithObject:[error localizedDescription] forKey:@"error"];
+NSDictionary *event = [TiUtils dictionaryWithCode:[error code] message:[TiUtils messageFromError:error]];
819
[selffireEvent:@"error"withObject:event];
820
}
821
0 commit comments