twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
461 stars 178 forks source link

Using the ReplayKitExample app, but the audio of the video doesn't get delivered. #601

Closed friendtree16 closed 2 years ago

friendtree16 commented 3 years ago

Description

I'm sharing a video using the ReplayKitExample app, but the audio of the video doesn't get delivered.

Steps to Reproduce

  1. Open ReplayKitExample Project in Xcode.
  2. Change Bundle Identifier for own ReplayKitExample , BroadcastExtention and BroadcastExtensionSetupUI.
  3. Update kBroadcastExtensionBundleId and kBroadcastExtensionSetupUiBundleId for my Bundle Identifier at ViewController.swift.
  4. Run ReplayKitExample on my iPhone.
  5. Start broadcast.
  6. Share video at file app.

Expected Behavior

Can hear the video sound from the web application clearly.

Actual Behavior

I can't hear the video sound from the web application.

Reproduces How Often

The recall rate is 100%.

Versions

Video iOS SDK

TwilioVideo 4.4

Xcode

XCode 12.2

iOS Version

14.4

iOS Device

iPhone 11

ceaglest commented 3 years ago

Hi @friendtree16,

I can't hear the video sound from the web application.

I am sorry about this. The problem is that the example app doesn't support mixing of ReplayKit audio yet. If you only want the app audio and not the mic you can get it by changing this line of code.

    static let kAudioSampleType = RPSampleBufferType.audioApp

Best, Chris

friendtree16 commented 3 years ago

Hi @ceaglest Thanks for your reply!