Skip to content

Commit 0f17cc6

Browse files
author
qinhui
committed
Fix media encryption bug
1 parent 9898b38 commit 0f17cc6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

macOS/APIExample/Examples/Advanced/StreamEncryption/StreamEncryption.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ class StreamEncryption: BaseViewController {
299299
)
300300
} else {
301301
isProcessing = true
302+
AgoraCustomEncryption.deregisterPacketProcessing(agoraKit)
303+
302304
agoraKit.disableVideo()
303305
agoraKit.leaveChannel { [unowned self] (stats:AgoraChannelStats) in
304306
self.isProcessing = false

0 commit comments

Comments
 (0)