Jump to content
  • 0

Change Camera iOS/Android SDK Sample Code


Carlo
 Share

Question

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!


Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
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 <favistech@gmail.com> wrote:
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!


--
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-server+unsubscribe@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
Link to comment
Share on other sites

  • 0
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 <support@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 <favistech@gmail.com> wrote:
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!


--
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-server+unsubscribe@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
Link to comment
Share on other sites

  • 0
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/

On Wed, 29 Jul at 5:23 AM , Favis Technologies <favistech@gmail.com> wrote:
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!



On Tue, Jul 28, 2020 at 5:34 AM Ant Media <support@antmedia.freshdesk.com> wrote:
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 <
> 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 

On Mon, 27 Jul at 1:31 AM
, Favis Technologies <
> wrote:
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!


--

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
.

To view this discussion on the web visit
.

14960:1264838
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...