@akylas/nativescript-audio
Advanced tools
Comparing version 6.2.7 to 6.2.8
@@ -6,2 +6,10 @@ # Change Log | ||
## [6.2.8](https://github.com/farfromrefug/nativescript-audio/compare/v6.2.7...v6.2.8) (2022-02-07) | ||
**Note:** Version bump only for package @akylas/nativescript-audio | ||
## 6.2.7 (2022-02-07) | ||
@@ -8,0 +16,0 @@ |
@@ -79,3 +79,3 @@ import { Observable, Utils, knownFolders, path as nsFilePath } from '@nativescript/core'; | ||
const audioSession = AVAudioSession.sharedInstance(); | ||
audioSession.setCategoryModeRouteSharingPolicyOptionsError(options.sessionCategory || AVAudioSessionCategoryAmbient, options.sessionMode || AVAudioSessionModeDefault, options.sessionRouteSharingPolicy || 1, options.audioMixing ? 1 : 2); | ||
audioSession.setCategoryModeRouteSharingPolicyOptionsError(options.sessionCategory || AVAudioSessionCategoryAmbient, options.sessionMode || AVAudioSessionModeDefault, options.sessionRouteSharingPolicy || 1, options.audioMixing ? 1 : 2, null); | ||
const output = audioSession.currentRoute.outputs.lastObject.portType; | ||
@@ -148,8 +148,3 @@ if (output.match(/Receiver/)) { | ||
const audioSession = AVAudioSession.sharedInstance(); | ||
if (options.audioMixing) { | ||
audioSession.setCategoryWithOptionsError(AVAudioSessionCategoryAmbient, 1); | ||
} | ||
else { | ||
audioSession.setCategoryWithOptionsError(AVAudioSessionCategoryAmbient, 2); | ||
} | ||
audioSession.setCategoryModeRouteSharingPolicyOptionsError(options.sessionCategory || AVAudioSessionCategoryAmbient, options.sessionMode || AVAudioSessionModeDefault, options.sessionRouteSharingPolicy || 1, options.audioMixing ? 1 : 2, null); | ||
const output = audioSession.currentRoute.outputs.lastObject.portType; | ||
@@ -156,0 +151,0 @@ if (output.match(/Receiver/)) { |
{ | ||
"name": "@akylas/nativescript-audio", | ||
"version": "6.2.7", | ||
"version": "6.2.8", | ||
"description": "NativeScript plugin to record and play audio.", | ||
@@ -95,3 +95,3 @@ "main": "./index", | ||
}, | ||
"gitHead": "f2cea9a121299ba6666245e4da10a4d2fb968e6e" | ||
"gitHead": "de4a63875707c1dd27d5d48ca44aeee7f12b8d72" | ||
} |
@@ -45,3 +45,2 @@ <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--> | ||
* [Installation](#installation) | ||
* [Table of Contents](#table-of-contents) | ||
* [Installation](#installation-1) | ||
@@ -78,14 +77,3 @@ * [Android Native Classes](#android-native-classes) | ||
--- | ||
[](#table-of-contents) | ||
## Table of Contents | ||
1. [Installation](#installation) | ||
2. [Permissions](#permissions) | ||
3. [Usage](#usage) | ||
4. [API](#api) | ||
5. [Demos and Development](#demos-and-development) | ||
[](#installation) | ||
@@ -92,0 +80,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79101
1416
314