opentok / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
MIT License
30 stars 80 forks source link

Audio volume is very low in IOS - audioVolume not supported #163

Open Shtibel opened 5 years ago

Shtibel commented 5 years ago

Testing platform

IOS, Ionic, cordova

Current behavior

I am subscribing to a call from IOS device, and I hear the audio on the speaker but the volume is very low. On a regular call the volume is much higher.

Steps to reproduce

Create a session > join a session with other users > set the phone speaker volume to max and see that the audio is lower than the regular call volume.

Example Project

https://github.com/opentok/opentok-ionic-samples

What is the current bug behavior?

Can't set the volume to max, I try to set on the options this: audioBitrate: 128000, audioVolume:100 But it is not helping.

What is the expected correct behavior?

I think that the cordova-plugin-opentok does not support: audioVolume, needs to be added. https://tokbox.com/developer/guides/audio-video/js/#subscriber_audio_level

ufuksuu commented 5 years ago

Can you publish the video on iOS?

Shtibel commented 5 years ago

Hi @ufuksuu Yes works on ios

ufuksuu commented 5 years ago

i have an application and if I try to publish video I will get an error like getUserMedia not found can you give me an advice for this Ekran Resmi 2019-06-13 10 42 48 36440023-4883e506-1634-11e8-8d31-fbb398bca384

Shtibel commented 5 years ago

You can't use <script src="https://static.opentok.com/v2/js/opentok.min.js"></script> in IOS because it does not have supported browser...

Only use: <script type="text/javascript" charset="utf-8" src="opentok.js"></script>

See the documentation: https://github.com/opentok/cordova-plugin-opentok#getting-started-on-your-project

ufuksuu commented 5 years ago

I tried to use that but nothing was changed. Are you using cordova-plugin-iosrtc ?