File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
ios/RNNeteaseIm/RNNeteaseIm Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,9 +156,9 @@ export default class NIM{
156156 */
157157 static playLocacl ( name , type ) {
158158 if ( Platform . OS === 'ios' ) {
159- return RNNeteaseIm . playLocacl ( name , type ) ;
159+ return RNNeteaseIm . playLocal ( name , type ) ;
160160 }
161- return RNNeteaseIm . playLocacl ( "assets://" + name , type ) ;
161+ return RNNeteaseIm . playLocal ( "assets://" + name , type ) ;
162162 }
163163 /**
164164 * 停止播放录音
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ - (dispatch_queue_t)methodQueue
398398 [[ConversationViewController initWithConversationViewController ]play:filepath];
399399}
400400// 播放本地资源录音
401- RCT_EXPORT_METHOD (playLocacl :(nonnull NSString *)name type:(nonnull NSString *)type){
401+ RCT_EXPORT_METHOD (playLocal :(nonnull NSString *)name type:(nonnull NSString *)type){
402402 NSString *path = [[NSBundle mainBundle ] pathForResource: name ofType: type];
403403 [[ConversationViewController initWithConversationViewController ]play:path];
404404}
You can’t perform that action at this time.
0 commit comments