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

Can't see video or audio #8

Open
deepak-rathi opened this issue Oct 7, 2014 · 34 comments
Open

Can't see video or audio #8

deepak-rathi opened this issue Oct 7, 2014 · 34 comments

Comments

@deepak-rathi
Copy link

I am using my own turn server and openfire XMPP which is working well with Smack on Android.

I tried to test this app(YK-Unit/AppRTCDemo) on iOS, I am able to connect to my openfire xmpp server, I am also getting alert message saying "to have webrtc with sample_jid@domain" and the request is also received on another phone but I am not getting any video or audio.

There are no error in log or build; can help me why I am not getting any video or audio.

I am using xcode 6, iOS 8 with latest mac OSX

@hu361332804
Copy link

you can use a packet tool to monitor what happen. such as wireshake. or you
can see log in your server.

On Tue, Oct 7, 2014 at 2:12 PM, deepak-rathi notifications@github.com
wrote:

I am using my own turn server and openfire XMPP which is working well with
Smack on Android.

I tried to test this app(YK-Unit/AppRTCDemo) on iOS, I am able to connect
to my openfire xmpp server, I am also getting alert message saying "to have
webrtc with sample_jid@domain" and the request is also received on
another phone but I am not getting any video or audio.

There are no error in log or build; can help me why I am not getting any
video or audio.


Reply to this email directly or view it on GitHub
#8.

@yesidi
Copy link

yesidi commented Oct 13, 2014

i had this issue too, however, i have no idea about it. if you guys know how to slove this issue, guide me please. email: yesidi@me.com

@meontheroad
Copy link

@deepak-rathi :I can't see each other when I login the APP,I had turn serve and a counters inChatme.im.
my test log:
Adjusting AGC level from default -3dB to -3dB
2014-08-07 10:22:22.756 AppRTCDemo[1255:907] username=xmpp_one@jabbernet.dk,psw=123456
2014-08-07 10:53:21:693 AppRTCDemo[1255:907] XMPPWorker: xmppStreamDidDisconnect:withError:
2014-08-07 10:53:21:693 AppRTCDemo[1255:907] Unable to connect to server. Check xmppStream.hostName

It's a trouble to me。can U help me fixed it?

@meontheroad
Copy link

@deepak-rathi
How can I set address of openfire xmpp server in code? In getLastICEServers Fun of RTCWorker.m file,
just like stun&turn setting RTCICEServer *ICEServer1 = [[RTCICEServer alloc] initWithURI:[NSURL URLWithString:url1]username:username1 password:credential1];

[ICEServers addObject:ICEServer];
[ICEServers addObject:ICEServer1];
return ICEServers;

can u tell me how can set the open fire address in Code?
Thank u very much1

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 15, 2014

@meontheroad the two JabberID should follow each other, then they can see each other.
And what's important, you do better to use your own JabberID! Maybe someone use the same public JabberID at the same time,then throws kinds of unnamed bug or exception.

@deepak-rathi :I can't see each other when I login the APP,I had turn serve and a counters inChatme.im. 
my test log:
Adjusting AGC level from default -3dB to -3dB
2014-08-07 10:22:22.756 AppRTCDemo[1255:907] username=xmpp_one@jabbernet.dk,psw=123456
2014-08-07 10:53:21:693 AppRTCDemo[1255:907] XMPPWorker: xmppStreamDidDisconnect:withError:
2014-08-07 10:53:21:693 AppRTCDemo[1255:907] Unable to connect to server. Check xmppStream.hostName

@yesidi
Copy link

yesidi commented Oct 16, 2014

你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。

在 2014年10月13日,上午9:51,charleslinkn notifications@github.com 写道:

i also have no idea about it. you can ask him(email:yorkzhang520@gmail.com‍).i also asked him about this question, i test many times but there are a few times was a success, i also don't know what reason be.‍
This is his answer:对于你所搭建的测试环境一无所知,很难推断具体是哪里出错了,只能表示爱莫能助了。然而,最好办法依然是一步一步debug,测试是信令的传输问题还是xmpp服务器的问题。‍‍

------------------ 原始邮件 ------------------
发件人: "Yip";notifications@github.com;
发送时间: 2014年10月13日(星期一) 上午9:24
收件人: "YK-Unit/AppRTCDemo"AppRTCDemo@noreply.github.com;
抄送: "Charles-林"971059449@qq.com;
主题: Re: [AppRTCDemo] Can't see video or audio (#8)

i had this issue too, however, i have no idea about it. if you guys know how to slove this issue, guide me please. email: yesidi@me.com


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

@deepak-rathi
Copy link
Author

@meontheroad Sorry, There was a cyclone at my place. so there was no mobile signal and internet connectivity. Sorry for the delay in reply.

You can set the values in the below code present in
(https://github.com/YK-Unit/AppRTCDemo/blob/master/Classes/LoginViewController.m) only if you want to hard code the server address and other details like jabber id, and its password.

  • (IBAction)doLogin:(id)sender {
    NSString *jid = self.jidField.text;
    NSString *pwd = self.pwdField.text;
    NSString *hostName = self.hostNameField.text;
    if (jid && pwd) {
    if (_handler) {
    ((void(^)(NSString *,NSString *,NSString *))_handler)(jid,pwd,hostName);
    [self dismissViewControllerAnimated:YES completion:Nil];
    }
    }
    }

And regarding your question about error log to connect to your jabber host. I will suggest you to try to enter your host ip address in hostname. Default configuration of Openfire server should do great. I used my own static ip.

@deepak-rathi
Copy link
Author

@yesidi @YK-Unit Did you got any solution for my problem, that video or audio is not displayed even after we get notification for the accepting the webrtc video call.

@YK-Unit I checked that bother the JID are following each other. Can you please let me know if the existing code base is working on your machine. If there is any change in any configuration or any other modification of any kind then please let us know about it.

@yesidi
Copy link

yesidi commented Oct 16, 2014

hey,i think i know the reasons about this problem as following:you should check your openfire server log and you might get some errors, one of these error like that saying open fire server message have no enum type like "signaling" and then the client disconnected.

发自我的 iPhone

在 2014年10月17日,上午1:16,deepak-rathi notifications@github.com 写道:

@yesidi @YK-Unit Did you got any solution for my problem, that video or audio is not displayed even after we get notification for the accepting the webrtc video call.

@YK-Unit I checked that bother the JID are following each other. Can you please let me know if the existing code base is working on your machine. If there is any change in any configuration or any other modification of any kind then please let us know about it.


Reply to this email directly or view it on GitHub.

@yesidi
Copy link

yesidi commented Oct 16, 2014

I 've been install openfire jingle nodes plugin, however, this openfire message issue no changed. so, I wish @YK-Unit could share the right way openfire server configure to us. Regards.

发自我的 iPhone

在 2014年10月17日,上午1:16,deepak-rathi notifications@github.com 写道:

@yesidi @YK-Unit Did you got any solution for my problem, that video or audio is not displayed even after we get notification for the accepting the webrtc video call.

@YK-Unit I checked that bother the JID are following each other. Can you please let me know if the existing code base is working on your machine. If there is any change in any configuration or any other modification of any kind then please let us know about it.


Reply to this email directly or view it on GitHub.

@deepak-rathi
Copy link
Author

@yesidi Thanks for sharing the information.

@meontheroad
Copy link

@YK-Unit :thank U very much,I had fixed it,It can work like your's. The key problem is the jabber servers.U r better man :)

@deepak-rathi :My demo had work normal,The demo is not work when I run it first without video&audio.First,It can work normal in lan net When I set the available jabber server id ,without set servers of STUN&TURN. Second, I set Stun&turn servers in code just like @YK-Unit said. It can run immediately。It“s amazing. I think you had connect your jabber server without audio&video,I suggestion u can u other server of free, If the free server is ok,I think the key is in the jabber.I hope this can help U,Thanks for tell me.

@deepak-rathi
Copy link
Author

@meontheroad can you share any free jabber server details which may work for me. Also please share the the code where you added server details. Because I tried to enter the details but could not get it write I guess.

@yesidi
Copy link

yesidi commented Oct 17, 2014

It is good for me.😃
发自我的 iPhone

在 2014年10月17日,下午12:31,deepak-rathi notifications@github.com 写道:

@meontheroad can you share any free jabber server details which may work for me. Also please share the the code where you added server details. Because I tried to enter the details but could not get it write I guess.


Reply to this email directly or view it on GitHub.

@meontheroad
Copy link

@deepak-rathi :U can use Jabber server like this(XMPP.JP). Register the a counters,and add friends each other,Then use your own's Stun&turn server。U can see each other....I hope it useful for u.

@yesidi
Copy link

yesidi commented Oct 20, 2014

I use openfire with no worked.

在 2014年10月20日,10:22,meontheroad notifications@github.com 写道:

@deepak-rathi :U can use Jabber server like this(XMPP.JP). Register the a counters,and add friends each other,Then use your own's Stun&turn server。U can see each other....I hope it useful for u.


Reply to this email directly or view it on GitHub.

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 25, 2014

你好,由于我都是使用免费的 jabber 服务器进行测试,并没有自己搭建一个 jabber 服务器,所以我也不清楚你的服务器配置是否正确,sorry,或者你试一下免费的jabber 服务器,或者请教一下搭建成功的开发者。祝周末愉快!^_^

在 2014年10月16日,下午9:45,Yip notifications@github.com 写道:

你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。

在 2014年10月13日,上午9:51,charleslinkn notifications@github.com 写道:

i also have no idea about it. you can ask him(email:yorkzhang520@gmail.com‍).i also asked him about this question, i test many times but there are a few times was a success, i also don't know what reason be.‍
This is his answer:对于你所搭建的测试环境一无所知,很难推断具体是哪里出错了,只能表示爱莫能助了。然而,最好办法依然是一步一步debug,测试是信令的传输问题还是xmpp服务器的问题。‍‍

------------------ 原始邮件 ------------------
发件人: "Yip";notifications@github.com;
发送时间: 2014年10月13日(星期一) 上午9:24
收件人: "YK-Unit/AppRTCDemo"AppRTCDemo@noreply.github.com;
抄送: "Charles-林"971059449@qq.com;
主题: Re: [AppRTCDemo] Can't see video or audio (#8)

i had this issue too, however, i have no idea about it. if you guys know how to slove this issue, guide me please. email: yesidi@me.com


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@yesidi
Copy link

yesidi commented Oct 25, 2014

请问你是用哪个免费的jabber服務器?是openfire還是ejabberd還是其他呢?謝謝。

发自我的 iPhone

在 2014年10月25日,上午10:58,York notifications@github.com 写道:

你好,由于我都是使用免费的 jabber 服务器进行测试,并没有自己搭建一个 jabber 服务器,所以我也不清楚你的服务器配置是否正确,sorry,或者你试一下免费的jabber 服务器,或者请教一下搭建成功的开发者。祝周末愉快!^_^

在 2014年10月16日,下午9:45,Yip notifications@github.com 写道:

你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。

在 2014年10月13日,上午9:51,charleslinkn notifications@github.com 写道:

i also have no idea about it. you can ask him(email:yorkzhang520@gmail.com‍).i also asked him about this question, i test many times but there are a few times was a success, i also don't know what reason be.‍
This is his answer:对于你所搭建的测试环境一无所知,很难推断具体是哪里出错了,只能表示爱莫能助了。然而,最好办法依然是一步一步debug,测试是信令的传输问题还是xmpp服务器的问题。‍‍

------------------ 原始邮件 ------------------
发件人: "Yip";notifications@github.com;
发送时间: 2014年10月13日(星期一) 上午9:24
收件人: "YK-Unit/AppRTCDemo"AppRTCDemo@noreply.github.com;
抄送: "Charles-林"971059449@qq.com;
主题: Re: [AppRTCDemo] Can't see video or audio (#8)

i had this issue too, however, i have no idea about it. if you guys know how to slove this issue, guide me please. email: yesidi@me.com


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 25, 2014

我使用的 jabber 服务器都是来自这个网页里所列出的公共 jabber 服务器:

http://www.jabberes.org/servers/

PS:祝周末愉快^_^

在 2014年10月25日,上午11:28,Yip notifications@github.com 写道:

请问你是用哪个免费的jabber服務器?是openfire還是ejabberd還是其他呢?謝謝。

发自我的 iPhone

在 2014年10月25日,上午10:58,York notifications@github.com 写道:

你好,由于我都是使用免费的 jabber 服务器进行测试,并没有自己搭建一个 jabber 服务器,所以我也不清楚你的服务器配置是否正确,sorry,或者你试一下免费的jabber 服务器,或者请教一下搭建成功的开发者。祝周末愉快!^_^

在 2014年10月16日,下午9:45,Yip notifications@github.com 写道:

你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。

在 2014年10月13日,上午9:51,charleslinkn notifications@github.com 写道:

i also have no idea about it. you can ask him(email:yorkzhang520@gmail.com‍).i also asked him about this question, i test many times but there are a few times was a success, i also don't know what reason be.‍
This is his answer:对于你所搭建的测试环境一无所知,很难推断具体是哪里出错了,只能表示爱莫能助了。然而,最好办法依然是一步一步debug,测试是信令的传输问题还是xmpp服务器的问题。‍‍

------------------ 原始邮件 ------------------
发件人: "Yip";notifications@github.com;
发送时间: 2014年10月13日(星期一) 上午9:24
收件人: "YK-Unit/AppRTCDemo"AppRTCDemo@noreply.github.com;
抄送: "Charles-林"971059449@qq.com;
主题: Re: [AppRTCDemo] Can't see video or audio (#8)

i had this issue too, however, i have no idea about it. if you guys know how to slove this issue, guide me please. email: yesidi@me.com


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

@deepak-rathi
Copy link
Author

您好,我创建了xmpp.jp两个用户,但我卡住,无法登录或做视频音频呼叫。能否请您给一个示例用户的登录信息,我可以用于测试。

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 27, 2014

sorry,我也没有额外的示例用户了,建议您还是选择可用的jabber服务器来注册可用的账户吧。

在 2014年10月27日,下午3:00,deepak-rathi notifications@github.com 写道:

您好,我创建了xmpp.jp两个用户,但我卡住,无法登录或做视频音频呼叫。能否请您给一个示例用户的登录信息,我可以用于测试。


Reply to this email directly or view it on GitHub.

@yesidi
Copy link

yesidi commented Oct 27, 2014

@York-Unit,可用的jabber服務器很多,請問你當時用的具體是哪一個呢?

发自我的 iPhone

在 2014年10月27日,下午10:17,York notifications@github.com 写道:

sorry,我也没有额外的示例用户了,建议您还是选择可用的jabber服务器来注册可用的账户吧。

在 2014年10月27日,下午3:00,deepak-rathi notifications@github.com 写道:

您好,我创建了xmpp.jp两个用户,但我卡住,无法登录或做视频音频呼叫。能否请您给一个示例用户的登录信息,我可以用于测试。


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 28, 2014

@yesidi 当时用的就是demo里的提供的公用帐号

@yesidi
Copy link

yesidi commented Oct 28, 2014

@York-Unit 問的是:具体是哪个jabber服务器,而不是帐号哪来的。

发自我的 iPhone

在 2014年10月28日,下午3:03,York notifications@github.com 写道:

@yesidi 当时用的就是demo里的提供的公用帐号


Reply to this email directly or view it on GitHub.

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 30, 2014

囧rz~~公用帐号后缀对应的就是所使用的jabber服务器
rtc_one@jabbernet.dk,我使用的就是jabbernet.dk所提供的服务器

在 2014年10月28日,下午3:26,Yip notifications@github.com 写道:

@York-Unit 問的是:具体是哪个jabber服务器,而不是帐号哪来的。

发自我的 iPhone

在 2014年10月28日,下午3:03,York notifications@github.com 写道:

@yesidi 当时用的就是demo里的提供的公用帐号


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

@yesidi
Copy link

yesidi commented Oct 30, 2014

哦哦,這下知道了!那我是因為jabber服務器問題。個人覺得如果在markdown上表明一下就好很多!

发自我的 iPhone

在 2014年10月30日,下午2:28,York notifications@github.com 写道:

囧rz~~公用帐号后缀对应的就是所使用的jabber服务器
rtc_one@jabbernet.dk,我使用的就是jabbernet.dk所提供的服务器

在 2014年10月28日,下午3:26,Yip notifications@github.com 写道:

@York-Unit 問的是:具体是哪个jabber服务器,而不是帐号哪来的。

发自我的 iPhone

在 2014年10月28日,下午3:03,York notifications@github.com 写道:

@yesidi 当时用的就是demo里的提供的公用帐号


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@deepak-rathi
Copy link
Author

img_0541
img_0542
img_0543

I tried with the username you provided but app is not connecting to xmpp server as per log.

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 31, 2014

@yesidi 我都觉得该抽个时间根据现在的问题更新下readme了。^_^

@YK-Unit
Copy link
Owner

YK-Unit commented Oct 31, 2014

@deepak-rathi maybe the free server(jabbernet.dk) can't work well beacuseof something. I suggest you to get your own username from other good free server.Here is the way to get the free server:http://www.jabberes.org/servers/
good luck^_^

@wujin099
Copy link

wujin099 commented Sep 9, 2015

I also encountered this problem,and our ios developer change the type 'signaling' to 'normal',than the problem resolved,maybe you can try!

@YK-Unit
Copy link
Owner

YK-Unit commented Sep 9, 2015

In this demo, I custom-make a signaling type XMPPMessage to transfer the signallings. Before run this demo, Please Check whether your jabber server can support this custom XMPPMessage. If your jabber server cann't support it, you should modify the custom XMPPMessage's type that your jabber server can support in the XMPPMessage+Signaling file.

@yinyinliushang
Copy link

@deepak-rathi You can login the account with Spark, and add the other account as your friend, then you can see your friends in the interface the last picture you provided.

@manjunathgudisi
Copy link

How do I change "Signaling" to "normal" in the code.

@YK-Unit
Copy link
Owner

YK-Unit commented Sep 12, 2016

Maybe you want is In theXMPPMessage+Signaling file, change TYPE_SIGNALING macro value signaling to normal

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

8 participants