Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My voice heard by myself in IOS #223

Open
ranjanagarwal1991 opened this issue May 27, 2016 · 27 comments
Open

My voice heard by myself in IOS #223

ranjanagarwal1991 opened this issue May 27, 2016 · 27 comments

Comments

@ranjanagarwal1991
Copy link

I am making a cordova app for video chat and voice chat. Everything is fine except when i speak in ios device i can heard my voice again after a second or so.

In android everything is fine but in IOS i can hear my voice again and again on every time i speak.

Please reply if anyone has a solution..

@martyzz1
Copy link

what version of sdk's are you using? This was a known bug in older sdk's

On 27 May 2016 at 13:40, ranjan agarwal [email protected] wrote:

I am making a cordova app for video chat and voice chat. Everything is
fine except when i speak in ios device i can heard my voice again after a
second or so.

In android everything is fine but in IOS i can hear my voice again and
again on every time i speak.

Please reply if anyone has a solution..


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#223, or mute the
thread
https://github.com/notifications/unsubscribe/ABhvS3KGzUszMIPX88bsD62CfO9Zx2i7ks5qFuZFgaJpZM4IodmI
.

@ranjanagarwal1991
Copy link
Author

I am using latest cordova cli with latest ios platform..and i have downloaded this plugin by its name given here..

How can i check the sdk you are referring to??

@martyzz1
Copy link

You might want to checkout one of the more uptodat forks of this project.
This project default is to use opentok 2.4. they're now on 2.8 and it's
improved a lot...
On 27 May 2016 18:10, "ranjan agarwal" [email protected] wrote:

I am using latest cordova cli with latest ios platform..and i have
downloaded this plugin by its name given here..

How can i check the sdk you are referring to??


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#223 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABhvS_arffJq4ZXM1Vzcwj5NlZt1qqZrks5qFyVxgaJpZM4IodmI
.

@ranjanagarwal1991
Copy link
Author

Hi martyzz, its silly to ask but i dont know how to find a latest fork. Can you please help me out.

What i have done is i have create my cordova app and i have installed the plugin using cordova plugin add cordova plugin add https://github.com/songz/cordova-plugin-opentok/

Then i have added my code in the app and added ios platform. Then i have build the app using xcode and installed in iphone.

Same i have done for android and installed in my android phone. Then i made connection between these two devices only and i am having the problem.

@martyzz1
Copy link

martyzz1 commented May 27, 2016

try one of these forks

https://github.com/IjzerenHein/cordova-plugin-opentok

or this one

https://github.com/mergein/cordova-plugin-opentok

I haven't tried either, but I can see they're both being activiely contributed to and include much newer opentok sdks (2.7)

Also it is possible to update to 2.8, but you'd have to do this manually yourself, by making a fork and pathching the changes. There's information on how to do this in the open issues on this fork.

There is a known problem with the older sdks communicating with a chrome 50 browser....

@martyzz1
Copy link

see #222
&
#220

@ranjanagarwal1991
Copy link
Author

Both of the plugins didn't worked for me.

When i install plugin using:
cordova plugin add https://github.com/IjzerenHein/cordova-plugin-opentok

I am not able to add ios platform, there is some problem with opentok.framework.

When i install plugin using:
https://github.com/mergein/cordova-plugin-opentok

I am not able to connect to opentok in both android or ios cordova app.

Is there any other way to convert it to opentok sdk 2.8.1 in both android and ios.

@martyzz1
Copy link

yes, look at those issues I linked above. Make just those changes to this
version

On 28 May 2016 at 10:09, ranjan agarwal [email protected] wrote:

Both of the plugins didn't worked for me.

When i install plugin using:
cordova plugin add https://github.com/IjzerenHein/cordova-plugin-opentok

I am not able to add ios platform, there is some problem with
opentok.framework.

When i install plugin using:
https://github.com/mergein/cordova-plugin-opentok

I am not able to connect to opentok in both android or ios cordova app.

Is there any other way to convert it to opentok sdk 2.8.1 in both android
and ios.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#223 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABhvS709S-2dWiwr36n8BnUPn1L3uDu5ks5qGAY6gaJpZM4IodmI
.

@ranjanagarwal1991
Copy link
Author

YES, i got it working to the perfect level.

If you want best usage of opentok in cordova use these plugins.

For Android Use: cordova plugin add https://github.com/songz/cordova-plugin-opentok/

For IOS Use: cordova plugin add https://github.com/IrinaCodixis/cordova-plugin-opentok

@martyzz1
Copy link

martyzz1 commented Jun 3, 2016

I'm glad it worked for you but I'm not sure I'd agree that this is the best solution. You're still using 2.4 SDK's from opentok. These are old and buggy...

@smuaq
Copy link

smuaq commented Jun 12, 2016

@ranjanagarwal1991 Can you please help me in this regards, i'm also stuck with several options of OpenTok plugin?

@ranjanagarwal1991
Copy link
Author

Where are you stuck?
Which platform you are using for the app?

@smuaq
Copy link

smuaq commented Jun 12, 2016

@Rajan i am using it on top of ionic framework. I used this sdk and it works fine on ios but im unable to get a sound output from device to my pc on android. Do you have any working sample for both platforms that i could use? That would be really great as i am stuck on this for sometime now. Thanks in advance

@smuaq
Copy link

smuaq commented Jun 12, 2016

Ios to Pc works fine, android to pc gives no audio on pc but only on the android device.

@ranjanagarwal1991
Copy link
Author

Well i have never used my code for pc to android or pc to ios. But i will surely provide you a working example by one or two days.

@smuaq
Copy link

smuaq commented Jun 12, 2016

Thank you, i will wait for your reply

@andreportaro
Copy link

Hello there everyone.
I managed to make opentok work in Ionic but only on Android. @smuaq can you share how you made it work on iOS? also, are you on cordova or Ionic? Thank you :)

@smuaq
Copy link

smuaq commented Oct 24, 2017

@andreportaro I'm on ionic, you can use my fork, it has some extra checks in both layers & also uses the latest opentok version.
Link: https://github.com/smuaq/cordova-plugin-opentok

@andreportaro
Copy link

andreportaro commented Oct 24, 2017

Thank you @smuaq
I'm having trouble understanding - all these forks use deviceready callback, but I understand its meant to be used in cordova, am I wrong? Where should I put it inside an Ionic app, inside the controller that has the video?

It would be so helpful to have a small description on using it inside a Ionic app.

I'll keep trying, but if you have any other info its much appreciated :)

@smuaq
Copy link

smuaq commented Oct 24, 2017

I can definitely help you on that if you want! Well that logic would go inside the controller. You really don't need a deviceready callback for opentok initialization, it already only works on devices.

@smuaq
Copy link

smuaq commented Oct 24, 2017

I'm thinking about putting out my own plugin for this since I see many other stumbling across such basics & I definitely feel their pain ^_^

@andreportaro
Copy link

andreportaro commented Oct 24, 2017 via email

@smuaq
Copy link

smuaq commented Oct 24, 2017

Ah! sure I will share the code with you, by the way make sure you are initializing everything correctly. Give me a day, I will put out the sample code with my integrated plugin that will be helpful.

@smuaq
Copy link

smuaq commented Oct 25, 2017

@andreportaro here you go: https://github.com/smuaq/cordova-opentok-sample
Sample app with basics setup for a proper video session. Let me know if it works out.

@andreportaro
Copy link

Thank you so much @smuaq . I'm going to try it out!

@andreportaro
Copy link

andreportaro commented Nov 1, 2017 via email

@smuaq
Copy link

smuaq commented Nov 2, 2017

@andreportaro sure, you can reach to me on skype as well if you need live:smuaq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants