Change Camera iOS/Android SDK Sample Code

64 views
Skip to first unread message

Carlo

unread,
Jul 26, 2020, 6:30:58 PM7/26/20
to Ant Media Server
Good day,

Please send me sample code on how to change/switch between cameras (front then back) using the AntMedia SDK for iOS and Android. I checked the sample apps provided for the SDK and I don't think it was implemented on them.

Thank you in advance!


Ant Media

unread,
Jul 28, 2020, 5:10:28 AM7/28/20
to favi...@gmail.com, ant-medi...@googlegroups.com
Hi Favis Technologies,

I think its implemented. 
    open func setCameraPosition(position: AVCaptureDevice.Position) {
self.cameraPosition = position
}
​This function might help you then.
Best Regards,
Enes Kuluk.
PS : Free or Paid one-on-one support and consultancy for your streaming project, please book at https://calendly.com/antmedia/

, Favis Technologies <favi...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-serv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/f46902dd-3743-470b-b126-25e8c66d1feao%40googlegroups.com.
14960:1264838

Ant Media

unread,
Jul 28, 2020, 5:34:35 AM7/28/20
to favi...@gmail.com, ant-medi...@googlegroups.com
Hi Favis Technologies,
The reply i wrote above is about setting camera at the beginning of the stream. If you look at the example app for the ios sdk, there is a switchCamera function in there.
    open func switchCamera() {
self.webRTCClient?.switchCamera()
}
PS : Free or Paid one-on-one support and consultancy for your streaming project, please book at https://calendly.com/antmedia/
On Tue, 28 Jul at 12:10 PM
, Ant Media <sup...@antmedia.freshdesk.com> wrote:
Hi Favis Technologies,

I think its implemented. 
    open func setCameraPosition(position: AVCaptureDevice.Position) {
self.cameraPosition = position
}
​This function might help you then.
Best Regards,
Enes Kuluk.
PS : Free or Paid one-on-one support and consultancy for your streaming project, please book at https://calendly.com/antmedia/

On Mon, 27 Jul at 1:31 AM
, Favis Technologies <favi...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-serv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/f46902dd-3743-470b-b126-25e8c66d1feao%40googlegroups.com.
14960:1264838

Favis Technologies

unread,
Jul 28, 2020, 10:23:22 PM7/28/20
to Ant Media, Ant Media Server
Hello,

I think I have an old copy of the sample apps and SDKs (iOS/Android). Could you please send those over to me or direct me to where I can download them?

Thank you!


Ant Media

unread,
Jul 29, 2020, 5:48:45 AM7/29/20
to favi...@gmail.com, ant-medi...@googlegroups.com
Hi Favis Technologies,

You can download it from https://antmedia.io/my-account/subscriptions/ if you are logged in.
​Best Regards,
​Enes Kuluk.

PS : Free or Paid one-on-one support and consultancy for your streaming project, please book at https://calendly.com/antmedia/
14960:1264838
Reply all
Reply to author
Forward
0 new messages