[Freeswitch-users] MOD_VERTO on IOS, no audio on the browser client

Shlomi Schwartz shlomis at liveperson.com
Wed Mar 9 12:03:28 MSK 2016


When I'm removing the video track from the local media stream, I can hear
audio fine. what could be the cause?

var cameraID:String?
        self.localMediaStream = self.factory.mediaStreamWithLabel("Local-Meida")

        //if video option is enabled (default true)

        //-------------- Disabling this section solves the audio
issues --------------
        if(mediaOptions?["video"] as? Bool ?? true){
            for captureDevice in
AVCaptureDevice.devicesWithMediaType(AVMediaTypeVideo){
                if (captureDevice.position ==
mediaOptions?["devicePosition"] as? AVCaptureDevicePosition ??
AVCaptureDevicePosition.Front){
                    cameraID = captureDevice.localizedName
                    break
                }
            }

            if(cameraID == nil){
                reject(NSError(domain: "No cammera detected", code: 0,
userInfo: nil))
            }

            let capturer = RTCVideoCapturer.init(deviceName: cameraID)

            let videoSource =
self.factory.videoSourceWithCapturer(capturer, constraints:
mediaOptions?["constraints"] as? RTCMediaConstraints ?? nil)

            if let localVideoTrack =
self.factory.videoTrackWithID("Local-Video", source: videoSource){
                self.localMediaStream?.addVideoTrack(localVideoTrack)
            }else{
                reject(NSError(domain: "No Video track", code: 0,
userInfo: nil))
            }
        }
        //-------------- Disabling this section solves the audio
issues --------------

        if(mediaOptions?["audio"] as? Bool ?? true){
            let audioTrack = self.factory.audioTrackWithID("Local-Audio")
            self.localMediaStream?.addAudioTrack(audioTrack);
        }
        self.peerConnection!.addStream(self.localMediaStream)


On Tue, Mar 8, 2016 at 6:25 PM, Sergey Safarov <s.safarov at gmail.com> wrote:

> Could you connect iPhone to wifi router and capture network traffic from
> iPhone for analyzing. Using this way you can see what is ip address and
> port of RTP stream.
>
> On Tue, Mar 8, 2016, 17:20 Shlomi Schwartz <shlomis at liveperson.com> wrote:
>
>>
>> Hi All,
>>
>> I'm currently developing mod_verto class for IOS. I'm connecting via
>> websocket (ws:// *not secure*) to my FreeSwitch server and making a call.
>>
>> the other client is a chrome browser running Vero Communicator.
>> the call starts as expected and I can here audio from the chrome browser
>> on my iPhone.
>>
>> But there is no audio on the chrome side (can't hear my voice transmitted
>> from my iPhone).
>>
>> A call from browser to browser, works fine.
>>
>> Here is the FreeSwitch log
>> <https://www.dropbox.com/home/Public?preview=freeswitch.log.txt> of an
>> iPhone call session, and a stackoverflow question
>> <http://stackoverflow.com/questions/35826464/webrtc-ios-freeswitch-cant-hear-audio> explaining
>> my approach.
>>
>> I'm lost and any help will be appreciated! :)
>>
>> --
>> Shlomi Schwartz
>> R&D Technical Leader
>> T: +972-74-700-4511
>> <http://www.linkedin.com/company/164748> <http://twitter.com/liveperson>
>> <http://www.facebook.com/LivePersonInc> We Create Meaningful Connections
>>
>> <http://info.liveperson.com/201602/liz-welch/liveperson-robert-locascio-on-death-of-the-800-call.html>
>>
>> This message may contain confidential and/or privileged information.
>> If you are not the addressee or authorized to receive this on behalf of
>> the addressee you must not use, copy, disclose or take action based on this
>> message or any information herein.
>> If you have received this message in error, please advise the sender
>> immediately by reply email and delete this message. Thank you.
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Shlomi Schwartz
R&D Technical Leader
T: +972-74-700-4511
<http://www.linkedin.com/company/164748> <http://twitter.com/liveperson>
<http://www.facebook.com/LivePersonInc> We Create Meaningful Connections
<http://info.liveperson.com/201602/liz-welch/liveperson-robert-locascio-on-death-of-the-800-call.html>

-- 
This message may contain confidential and/or privileged information. 
If you are not the addressee or authorized to receive this on behalf of the 
addressee you must not use, copy, disclose or take action based on this 
message or any information herein. 
If you have received this message in error, please advise the sender 
immediately by reply email and delete this message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160309/aff5c609/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list