AppRTCDemo
AppRTCDemo copied to clipboard
Can't see video or audio
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
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 [email protected] 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 https://github.com/YK-Unit/AppRTCDemo/issues/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: [email protected]
@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] [email protected],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?
@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
@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] [email protected],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
你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。
在 2014年10月13日,上午9:51,charleslinkn [email protected] 写道:
i also have no idea about it. you can ask him(email:[email protected]).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";[email protected]; 发送时间: 2014年10月13日(星期一) 上午9:24 收件人: "YK-Unit/AppRTCDemo"[email protected]; 抄送: "Charles-林"[email protected]; 主题: 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: [email protected]
— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.
@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.
@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.
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 [email protected] 写道:
@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.
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 [email protected] 写道:
@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 Thanks for sharing the information.
@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.
@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.
It is good for me.😃 发自我的 iPhone
在 2014年10月17日,下午12:31,deepak-rathi [email protected] 写道:
@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.
@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.
I use openfire with no worked.
在 2014年10月20日,10:22,meontheroad [email protected] 写道:
@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.
你好,由于我都是使用免费的 jabber 服务器进行测试,并没有自己搭建一个 jabber 服务器,所以我也不清楚你的服务器配置是否正确,sorry,或者你试一下免费的jabber 服务器,或者请教一下搭建成功的开发者。祝周末愉快!^_^
在 2014年10月16日,下午9:45,Yip [email protected] 写道:
你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。
在 2014年10月13日,上午9:51,charleslinkn [email protected] 写道:
i also have no idea about it. you can ask him(email:[email protected]).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";[email protected]; 发送时间: 2014年10月13日(星期一) 上午9:24 收件人: "YK-Unit/AppRTCDemo"[email protected]; 抄送: "Charles-林"[email protected]; 主题: 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: [email protected]
— 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.
请问你是用哪个免费的jabber服務器?是openfire還是ejabberd還是其他呢?謝謝。
发自我的 iPhone
在 2014年10月25日,上午10:58,York [email protected] 写道:
你好,由于我都是使用免费的 jabber 服务器进行测试,并没有自己搭建一个 jabber 服务器,所以我也不清楚你的服务器配置是否正确,sorry,或者你试一下免费的jabber 服务器,或者请教一下搭建成功的开发者。祝周末愉快!^_^
在 2014年10月16日,下午9:45,Yip [email protected] 写道:
你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。
在 2014年10月13日,上午9:51,charleslinkn [email protected] 写道:
i also have no idea about it. you can ask him(email:[email protected]).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";[email protected]; 发送时间: 2014年10月13日(星期一) 上午9:24 收件人: "YK-Unit/AppRTCDemo"[email protected]; 抄送: "Charles-林"[email protected]; 主题: 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: [email protected]
— 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.
我使用的 jabber 服务器都是来自这个网页里所列出的公共 jabber 服务器:
http://www.jabberes.org/servers/
PS:祝周末愉快^_^
在 2014年10月25日,上午11:28,Yip [email protected] 写道:
请问你是用哪个免费的jabber服務器?是openfire還是ejabberd還是其他呢?謝謝。
发自我的 iPhone
在 2014年10月25日,上午10:58,York [email protected] 写道:
你好,由于我都是使用免费的 jabber 服务器进行测试,并没有自己搭建一个 jabber 服务器,所以我也不清楚你的服务器配置是否正确,sorry,或者你试一下免费的jabber 服务器,或者请教一下搭建成功的开发者。祝周末愉快!^_^
在 2014年10月16日,下午9:45,Yip [email protected] 写道:
你好,我在openfire上的log发现一但发送type=signaling 的message 就会断开连接,然后我添加了jingle nodes plugin,也还会出现断开的情况。请问openfire服务器需要安装哪些插件吗?另:openfire没有用公网ip。打扰了,望能解答。
在 2014年10月13日,上午9:51,charleslinkn [email protected] 写道:
i also have no idea about it. you can ask him(email:[email protected]).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";[email protected]; 发送时间: 2014年10月13日(星期一) 上午9:24 收件人: "YK-Unit/AppRTCDemo"[email protected]; 抄送: "Charles-林"[email protected]; 主题: 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: [email protected]
— 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.
您好,我创建了xmpp.jp两个用户,但我卡住,无法登录或做视频音频呼叫。能否请您给一个示例用户的登录信息,我可以用于测试。
sorry,我也没有额外的示例用户了,建议您还是选择可用的jabber服务器来注册可用的账户吧。
在 2014年10月27日,下午3:00,deepak-rathi [email protected] 写道:
您好,我创建了xmpp.jp两个用户,但我卡住,无法登录或做视频音频呼叫。能否请您给一个示例用户的登录信息,我可以用于测试。
— Reply to this email directly or view it on GitHub.
@York-Unit,可用的jabber服務器很多,請問你當時用的具體是哪一個呢?
发自我的 iPhone
在 2014年10月27日,下午10:17,York [email protected] 写道:
sorry,我也没有额外的示例用户了,建议您还是选择可用的jabber服务器来注册可用的账户吧。
在 2014年10月27日,下午3:00,deepak-rathi [email protected] 写道:
您好,我创建了xmpp.jp两个用户,但我卡住,无法登录或做视频音频呼叫。能否请您给一个示例用户的登录信息,我可以用于测试。
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub.
@yesidi 当时用的就是demo里的提供的公用帐号
@York-Unit 問的是:具体是哪个jabber服务器,而不是帐号哪来的。
发自我的 iPhone
在 2014年10月28日,下午3:03,York [email protected] 写道:
@yesidi 当时用的就是demo里的提供的公用帐号
— Reply to this email directly or view it on GitHub.
囧rz~~公用帐号后缀对应的就是所使用的jabber服务器 如[email protected],我使用的就是jabbernet.dk所提供的服务器
在 2014年10月28日,下午3:26,Yip [email protected] 写道:
@York-Unit 問的是:具体是哪个jabber服务器,而不是帐号哪来的。
发自我的 iPhone
在 2014年10月28日,下午3:03,York [email protected] 写道:
@yesidi 当时用的就是demo里的提供的公用帐号
— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.
哦哦,這下知道了!那我是因為jabber服務器問題。個人覺得如果在markdown上表明一下就好很多!
发自我的 iPhone
在 2014年10月30日,下午2:28,York [email protected] 写道:
囧rz~~公用帐号后缀对应的就是所使用的jabber服务器 如[email protected],我使用的就是jabbernet.dk所提供的服务器
在 2014年10月28日,下午3:26,Yip [email protected] 写道:
@York-Unit 問的是:具体是哪个jabber服务器,而不是帐号哪来的。
发自我的 iPhone
在 2014年10月28日,下午3:03,York [email protected] 写道:
@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.
I tried with the username you provided but app is not connecting to xmpp server as per log.
@yesidi 我都觉得该抽个时间根据现在的问题更新下readme了。^_^
@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^_^
I also encountered this problem,and our ios developer change the type 'signaling' to 'normal',than the problem resolved,maybe you can try!