# Help this problem that DeepAR With IVS for LiveStreaming

**URL:** <https://forum.deepar.ai/t/help-this-problem-that-deepar-with-ivs-for-livestreaming/468>\
**Category:** Help & Questions\
**Created:** [October 27, 2023, 8:14am UTC](https://forum.deepar.ai/t/help-this-problem-that-deepar-with-ivs-for-livestreaming/468 "2023-10-27T08:14:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olly](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/olly/32/672_2.png) [@olly](https://forum.deepar.ai/u/olly)\
**Post date:** [October 27, 2023, 8:14am UTC](https://forum.deepar.ai/t/help-this-problem-that-deepar-with-ivs-for-livestreaming/468/1 "2023-10-27T08:14:41Z")

</div>

this is what i try

> **[GitHub - DeepARSDK/ios-deepar-amazon-ivs-sample-integration](https://github.com/DeepARSDK/ios-deepar-amazon-ivs-sample-integration)**
>
> Contribute to DeepARSDK/ios-deepar-amazon-ivs-sample-integration development by creating an account on GitHub.

Here’s the translation of the given content:

Hello, I am currently testing a live streaming application using deepAR and IVS in a demo app. I am using an iOS device, specifically the iPhone 12.

Below is my Podfile:

# Uncomment the next line to define a global platform for your project

# platform :ios, ‘9.0’

target ‘quickstart-ios-swift’ do

# Comment the next line if you don’t want to use dynamic frameworks

use\_frameworks!

# Pods for quickstart-ios-swift

```
pod 'AmazonIVSBroadcast', '~> 1.12.0'
pod 'DeepAR'

```

end

I initially wanted to use the latest version of AmazonIVSBroadcast without specifying the version, but I encountered an error:

2023-10-27 15:36:20.516995+0900 quickstart-ios-swift[664:66109] [AudioConverter] CodecConverter.cpp:1030 Encoder client can’t handle 256-byte packet!

Due to this error, I had to use a specific version.

The problem is that while the video and audio are correctly transmitted to IVS, when I run the following code:

func setupIVS() {  
do {  
let broadcastSession = try IVSBroadcastSession(configuration: IVSPresets.configurations().standardPortrait(),  
descriptors: IVSPresets.devices().frontCamera(),  
delegate: self)

```
        let customImageSource = broadcastSession.createImageSource(withName: "customSourceName")

        broadcastSession.attach(customImageSource, toSlotWithName: "customSourceSlot")
        self.customImageSource = customImageSource
        
        self.broadcastSession = broadcastSession
        
        let url = URL(string: kIngestServer)
        let key = kStreamKey
        try broadcastSession.start(with: url!, streamKey: key)
    } catch {
        assertionFailure("IVSBroadcastSession failed to initialize.")
    }
}

```

The phone’s screen freezes. It seems like the thread might be blocked because while the screen is frozen, when I check IVS, the live streaming is still ongoing normally. How can I resolve this? I would appreciate it

---

<div class="post-metadata">

**Author:** ![igor](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/igor/32/547_2.png) [@igor](https://forum.deepar.ai/u/igor)\
**Post date:** [October 30, 2023, 1:53pm UTC](https://forum.deepar.ai/t/help-this-problem-that-deepar-with-ivs-for-livestreaming/468/3 "2023-10-30T13:53:40Z")

</div>

> Replying for future reference

In setting up the session, the descriptor should be set up to `microphone()` or `nil` if `customImageSource` using the camera is used.
