Skip to content

Commit 5a7e346

Browse files
author
xianing
committed
fix simulator compatible issue
1 parent 82797a7 commit 5a7e346

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

iOS/APIExample/Common/ExternalVideo/AgoraMetalRender.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ extension AgoraMetalRender: AgoraVideoFrameDelegate {
132132
}
133133

134134
func getVideoFrameProcessMode() -> AgoraVideoFrameProcessMode {
135+
#if os(iOS) && (!arch(i386) && !arch(x86_64))
135136
initializeRenderPipelineState()
136137
metalView.delegate = self
138+
#endif
137139
return .readOnly
138140
}
139141

0 commit comments

Comments
 (0)