|
|
@ -782,18 +782,24 @@ class RTCManager { |
|
|
await _engine?.muteLocalAudioStream(false); |
|
|
await _engine?.muteLocalAudioStream(false); |
|
|
await _engine?.muteLocalVideoStream(false); |
|
|
await _engine?.muteLocalVideoStream(false); |
|
|
|
|
|
|
|
|
await _engine?.enableContentInspect( |
|
|
|
|
|
enabled: true, |
|
|
|
|
|
config: ContentInspectConfig( |
|
|
|
|
|
modules: [ |
|
|
|
|
|
ContentInspectModule( |
|
|
|
|
|
type: ContentInspectType.contentInspectSupervision, |
|
|
|
|
|
interval: 15 |
|
|
|
|
|
) |
|
|
|
|
|
], |
|
|
|
|
|
moduleCount: 1 |
|
|
|
|
|
) |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
await _engine?.enableContentInspect( |
|
|
|
|
|
enabled: true, |
|
|
|
|
|
config: ContentInspectConfig( |
|
|
|
|
|
modules: [ |
|
|
|
|
|
ContentInspectModule( |
|
|
|
|
|
type: ContentInspectType.contentInspectSupervision, |
|
|
|
|
|
interval: 15 |
|
|
|
|
|
) |
|
|
|
|
|
], |
|
|
|
|
|
moduleCount: 1 |
|
|
|
|
|
) |
|
|
|
|
|
); |
|
|
|
|
|
print("截图开启成功"); |
|
|
|
|
|
} catch (e){ |
|
|
|
|
|
print("截图开启失败"); |
|
|
|
|
|
print(e); |
|
|
|
|
|
} |
|
|
await RTMManager.instance.publishChannelMessage( |
|
|
await RTMManager.instance.publishChannelMessage( |
|
|
channelName: _currentChannelId ?? '', |
|
|
channelName: _currentChannelId ?? '', |
|
|
message: json.encode({ |
|
|
message: json.encode({ |
|
|
|