Skip to content

Third party app audio issue while app with iosrtc is running in the background #713

@vahvarh

Description

@vahvarh

YOU MUST read first!

Please use Community Forum for general technical discussions and questions.

  • I have used Google with the error message or bug in association with the library and Cordova words to make sure the issue I'm reporting is only related to iOSRTC.
  • I have provided steps to reproduce (e.g. using sample app code https://github.com/cordova-rtc/cordova-plugin-iosrtc-sample or updated extra/renderer-and-libwebrtc-tests.js file).
  • I have provided versions of third party library name, IOS, Xcode and plugin version and adapter.js version if used.

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed, removing this checkbox will result in automatic closed issue.

Versions affected

  • Cordova version (e.g 7.1.0): 10.0.0 (latest)
  • Cordova iOS version (e.g 5.1.0): 6.1.0 (latest)
  • Plugin version (e.g 6.0.12): latest and git/master
  • iOS version (e.g 10.2): 11+
  • Xcode version (e.g 11.1 - 11A1027): 13.0
  • WebRTC-adapter version (e.g. 7.4.0): latest
  • WebRTC Framework version (e.g. JSSip 3.1.2): latest

Description

If background music plays (say apple music) and I start application (not even doing any API calls at all), music either stops (if cordova-plugin-background-mode is installed) or gets very loud and crappy (if no cordova-plugin-background-mode is installed).

Steps to reproduce

Music stop:

  1. Connect bluetooth or wired earphones
  2. Install cordova-plugin-iosrtc-sample
  3. delete or comment out scripts from www/index.html (src="js/common.js" and src="js/index-local.js")
  4. compile
  5. start music in player
  6. start application

Music gets loud and crappy:

  1. Connect bluetooth or wired earphones
  2. Install cordova-plugin-iosrtc-sample
  3. delete or comment out scripts from www/index.html (src="js/common.js" and src="js/index-local.js")
  4. cordova plugin remove cordova-plugin-background-mode
  5. compile
  6. start music in player
  7. start application

Expected results

Music continues to play with same volume and quality (since no API calls done yet)

Actual results

Music stops or gets loud and crappy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions