Skip to content

Commit

Permalink
添加开始停止发布本地流接口
Browse files Browse the repository at this point in the history
Change-Id: I8ee38e772c469b37edcdef9c3827f98e8cc2f8cd
  • Loading branch information
tonychanchen committed Apr 23, 2023
1 parent cbd317b commit 4eb0198
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/SDK/LinkVideo/TIoTCoreXP2PBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ extern NSNotificationName const TIoTCoreXP2PBridgeNotificationStreamEnd;
- (void)setAudioRoute:(BOOL)isHandsFree ;
//静音或回复音频
- (void)muteLocalAudio:(BOOL)mute;
//静音或回复音频
- (void)muteLocalVideo:(BOOL)mute;
/*
* 局域网相关接口
*/
Expand Down
3 changes: 3 additions & 0 deletions Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ - (void)setAudioRoute:(BOOL)isHandsFree {
- (void)muteLocalAudio:(BOOL)mute {
[[TRTCCloud sharedInstance] muteLocalAudio:mute];
}
- (void)muteLocalVideo:(BOOL)mute {
[[TRTCCloud sharedInstance] muteLocalVideo:TRTCVideoStreamTypeBig mute:mute];
}

- (void)stopService:(NSString *)dev_name {
[self stopVoiceToServer];
Expand Down

0 comments on commit 4eb0198

Please sign in to comment.