songz / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Other
162 stars 270 forks source link

My voice heard by myself in IOS #223

Open ranjanagarwal1991 opened 8 years ago

ranjanagarwal1991 commented 8 years ago

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 commented 8 years ago

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 notifications@github.com 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 https://github.com/songz/cordova-plugin-opentok/issues/223, or mute the thread https://github.com/notifications/unsubscribe/ABhvS3KGzUszMIPX88bsD62CfO9Zx2i7ks5qFuZFgaJpZM4IodmI .

ranjanagarwal1991 commented 8 years ago

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 commented 8 years ago

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" notifications@github.com 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 https://github.com/songz/cordova-plugin-opentok/issues/223#issuecomment-222201737, or mute the thread https://github.com/notifications/unsubscribe/ABhvS_arffJq4ZXM1Vzcwj5NlZt1qqZrks5qFyVxgaJpZM4IodmI .

ranjanagarwal1991 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

see https://github.com/songz/cordova-plugin-opentok/issues/222 & https://github.com/songz/cordova-plugin-opentok/issues/220

ranjanagarwal1991 commented 8 years ago

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 commented 8 years ago

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

On 28 May 2016 at 10:09, ranjan agarwal notifications@github.com 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 https://github.com/songz/cordova-plugin-opentok/issues/223#issuecomment-222298645, or mute the thread https://github.com/notifications/unsubscribe/ABhvS709S-2dWiwr36n8BnUPn1L3uDu5ks5qGAY6gaJpZM4IodmI .

ranjanagarwal1991 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

ranjanagarwal1991 commented 8 years ago

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

smuaq commented 8 years ago

@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 commented 8 years ago

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

ranjanagarwal1991 commented 8 years ago

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 commented 8 years ago

Thank you, i will wait for your reply

andreportaro commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Please do! I feel bad that this is considered basic; but I do know I'm kinda venturing in a whole new turf and may be beating my head in the wrong direction. If you have an example of a working ionic app with this plugin, I'd appreciate it very much.

Right now I'm at the point that I can see only the video of the user on the screen, but can't subscribe to anything.

:)

2017-10-24 16:06 GMT-02:00 Usman notifications@github.com:

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 ^_^

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/songz/cordova-plugin-opentok/issues/223#issuecomment-339080231, or mute the thread https://github.com/notifications/unsubscribe-auth/AFObisRp11kPixPr2jUbRGE4R4DVYirCks5svicwgaJpZM4IodmI .

-- André Portaro Tzermias 55 12 9 9653 1200

smuaq commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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

andreportaro commented 6 years ago

Thanks a lot Usman and sorry for the delay. Actually I didnt manage to make it work, even with your example :( I guess it would be better for us all if we moved this chat to a new issue or another repo? Thanks!!

2017-10-25 7:50 GMT-02:00 Usman notifications@github.com:

@andreportaro https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/songz/cordova-plugin-opentok/issues/223#issuecomment-339276652, or mute the thread https://github.com/notifications/unsubscribe-auth/AFObiqmQsLkDSi22KtHCLIQ7mEWGSokGks5svwRJgaJpZM4IodmI .

-- André Portaro Tzermias 55 12 9 9653 1200

smuaq commented 6 years ago

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