aws-samples / amazon-ivs-broadcast-ios-sample

MIT No Attribution
17 stars 11 forks source link

Broadcasting on IVS and Instagram same time #71

Open Emefar opened 2 months ago

Emefar commented 2 months ago

Hello, We’re using IVS system for broadcasting on mobile devices (Android & iOS SDK). We wanna broadcast with Instagram and IVS at sime time. How can we connect Instagram’s rtmps and key to our IVS channel? When we connect, we’ll create broadcast on IVS and when we start broadcasting, we need to see our broadcast on Instagram.

Screenshot at Apr 25 14-20-31

bclymer commented 2 months ago

Hey @Emefar , that is not something the mobile SDKs natively supports yet (simulcasting to multiple RTMPS endpoints). It's possible you could create 2 IVSBroadcastSession instances and stream to each independently. However to have the 2 streams share devices, you would need to either:

  1. Use custom image/audio sources and manage the camera/microphone yourself (we have an example in this repo). Then each IVSBroadcastSession could have its own custom source, but they'd both be given samples from the same camera/mic.
  2. Use IVSDeviceDiscovery to discover and create device instances and attach them using the IVSDevice APIs on IVSBroadcastSession (instead of IVSDeviceDescriptor APIs).

But this isn't something we have tested internally nor is it something we officially support.