# Local Video Preview not working in Video SDK iOS Swift

**URL:** <https://devforum.zoom.us/t/local-video-preview-not-working-in-video-sdk-ios-swift/88028>\
**Category:** iOS\
**Tags:** video-sdk, ios\
**Created:** [May 8, 2023, 2:13pm UTC](https://devforum.zoom.us/t/local-video-preview-not-working-in-video-sdk-ios-swift/88028 "2023-05-08T14:13:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gireesh.ks](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gireesh.ks/32/48293_2.png) [@gireesh.ks](https://devforum.zoom.us/u/gireesh.ks)\
**Post date:** [May 8, 2023, 2:13pm UTC](https://devforum.zoom.us/t/local-video-preview-not-working-in-video-sdk-ios-swift/88028/1 "2023-05-08T14:13:18Z")

</div>

Local Video preview is not working in ZOOM Video SDK in swift. Getting black screen instead of local video.

following code is used to create local video. Session has no issues. Participants can see each other.

let sessionContext = ZoomVideoSDKSessionContext()  
let zoomVideoSDKAudioOptions = ZoomVideoSDKAudioOptions()  
zoomVideoSDKAudioOptions.connect = true  
zoomVideoSDKAudioOptions.mute = false  
let zoomVideoSDKVideoOptions = ZoomVideoSDKVideoOptions()  
zoomVideoSDKVideoOptions.localVideoOn = true  
sessionContext.token = consultationModel?.patientToken ?? “”  
sessionContext.sessionName = consultationModel?.sessionId ?? “”  
sessionContext.userName = “Test User”  
sessionContext.audioOption = zoomVideoSDKAudioOptions  
sessionContext.videoOption = zoomVideoSDKVideoOptions  
if let videoHelper = ZoomVideoSDK.shareInstance()?.getVideoHelper() {  
videoHelper.startVideo()  
videoHelper.rotateMyVideo(.portrait)  
videoHelper.startVideoCanvasPreview(publisherView, andAspectMode: .panAndScan)  
}  
if let audioHelper = ZoomVideoSDK.shareInstance()?.getAudioHelper() {  
audioHelper.startAudio()  
}  
if let session = ZoomVideoSDK.shareInstance()?.joinSession(sessionContext) {

```
    }

```

- Device: iPhone 7
- OS: iOS 15

---

<div class="post-metadata">

**Author:** ![jenzushsu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenzushsu/32/34251_2.png) [@jenzushsu](https://devforum.zoom.us/u/jenzushsu)\
**Post date:** [May 9, 2023, 7:19am UTC](https://devforum.zoom.us/t/local-video-preview-not-working-in-video-sdk-ios-swift/88028/2 "2023-05-09T07:19:32Z")

</div>

Hi @gireesh.ks , thank you for reaching out. May I check which version of VSDK for iOS you are currently on?

---

<div class="post-metadata">

**Author:** ![gireesh.ks](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gireesh.ks/32/48293_2.png) [@gireesh.ks](https://devforum.zoom.us/u/gireesh.ks)\
**Post date:** [May 9, 2023, 10:14am UTC](https://devforum.zoom.us/t/local-video-preview-not-working-in-video-sdk-ios-swift/88028/3 "2023-05-09T10:14:05Z")

</div>

1.7.5 and downloaded from zoom app marketplace

---

<div class="post-metadata">

**Author:** ![jenzushsu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenzushsu/32/34251_2.png) [@jenzushsu](https://devforum.zoom.us/u/jenzushsu)\
**Post date:** [May 9, 2023, 1:42pm UTC](https://devforum.zoom.us/t/local-video-preview-not-working-in-video-sdk-ios-swift/88028/4 "2023-05-09T13:42:28Z")

</div>

Hi @gireesh.ks,

Thank you for your time and we managed to clarify the issue that you encountered. We will mark this as closed for now. If there’s any new issues, please open a new topic.

Thank you.

---

<div class="post-metadata">

**Author:** ![jenzushsu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenzushsu/32/34251_2.png) [@jenzushsu](https://devforum.zoom.us/u/jenzushsu)\
**Post date:** [May 9, 2023, 1:42pm UTC](https://devforum.zoom.us/t/local-video-preview-not-working-in-video-sdk-ios-swift/88028/5 "2023-05-09T13:42:38Z")

</div>

Closed on May 9, 2023, 1:42pm UTC


