diff --git a/README.md b/README.md index 7420787..abbe60d 100644 --- a/README.md +++ b/README.md @@ -344,6 +344,7 @@ These properties are required for **both** Publishers and Subscribers. | bufferTime | number | 0.5 | Default buffer. | | streamBufferTime | number | 4 | Default buffer for subscribers to allow on the server in sending packets. | | parameters | string | none | Optional connection parameters. Often used for authentication. ***[See Note Below](#parameters-configuration-property)** | +| inheritAVSessionOptions | boolean | `REQUIRED` | Flag to allow SDK to set AVSessionCategroy options. Setting this to _true_ will have Red5Pro manage the audio session. | | key | string | `REQUIRED` | Unique key to be used internally to access the configuration object. | ### Parameters Configuration Property diff --git a/ios/R5VideoView/R5VideoView/R5VideoViewManager.m b/ios/R5VideoView/R5VideoView/R5VideoViewManager.m index 8cc87c6..2bcb0af 100644 --- a/ios/R5VideoView/R5VideoView/R5VideoViewManager.m +++ b/ios/R5VideoView/R5VideoView/R5VideoViewManager.m @@ -214,7 +214,7 @@ @implementation R5VideoViewManager configuration.buffer_time = [json[@"bufferTime"] floatValue]; configuration.stream_buffer_time = [json[@"streamBufferTime"] floatValue]; configuration.parameters = json[@"parameters"]; - + configuration.inheritAVSessionOptions = [json[@"inheritAVSessionOptions"] boolValue]; [view loadConfiguration:configuration forKey:json[@"key"]]; } diff --git a/src/view/R5VideoView.js b/src/view/R5VideoView.js index 0752418..bcffd27 100644 --- a/src/view/R5VideoView.js +++ b/src/view/R5VideoView.js @@ -128,6 +128,7 @@ R5VideoView.propTypes = { bufferTime: PropTypes.number, streamBufferTime: PropTypes.number, parameters: PropTypes.string, + inheritAVSessionOptions: PropTypes.bool.isRequired, key: PropTypes.string.isRequired }).isRequired, onConfigured: PropTypes.func,