Coder Social home page Coder Social logo

Can't see video or audio about apprtcdemo HOT 34 OPEN

yk-unit avatar yk-unit commented on July 28, 2024
Can't see video or audio

from apprtcdemo.

Comments (34)

hu361332804 avatar hu361332804 commented on July 28, 2024

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
#8.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

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]

from apprtcdemo.

meontheroad avatar meontheroad commented on July 28, 2024

@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=[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?

from apprtcdemo.

meontheroad avatar meontheroad commented on July 28, 2024

@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

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

@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

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

你好,我在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.

from apprtcdemo.

deepak-rathi avatar deepak-rathi commented on July 28, 2024

@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.

from apprtcdemo.

deepak-rathi avatar deepak-rathi commented on July 28, 2024

@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.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

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.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

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.

from apprtcdemo.

deepak-rathi avatar deepak-rathi commented on July 28, 2024

@yesidi Thanks for sharing the information.

from apprtcdemo.

meontheroad avatar meontheroad commented on July 28, 2024

@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.

from apprtcdemo.

deepak-rathi avatar deepak-rathi commented on July 28, 2024

@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.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

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.

from apprtcdemo.

meontheroad avatar meontheroad commented on July 28, 2024

@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.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

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.

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

你好,由于我都是使用免费的 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.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

请问你是用哪个免费的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.

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

我使用的 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.

from apprtcdemo.

deepak-rathi avatar deepak-rathi commented on July 28, 2024

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

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

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

在 2014年10月27日,下午3:00,deepak-rathi [email protected] 写道:

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


Reply to this email directly or view it on GitHub.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

@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.

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

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

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

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

发自我的 iPhone

在 2014年10月28日,下午3:03,York [email protected] 写道:

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


Reply to this email directly or view it on GitHub.

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

囧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.

from apprtcdemo.

yesidi avatar yesidi commented on July 28, 2024

哦哦,這下知道了!那我是因為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.

from apprtcdemo.

deepak-rathi avatar deepak-rathi commented on July 28, 2024

img_0541
img_0542
img_0543

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

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

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

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

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

from apprtcdemo.

wujin099 avatar wujin099 commented on July 28, 2024

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

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

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.

from apprtcdemo.

yinyinliushang avatar yinyinliushang commented on July 28, 2024

@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.

from apprtcdemo.

manjunathgudisi avatar manjunathgudisi commented on July 28, 2024

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

from apprtcdemo.

YK-Unit avatar YK-Unit commented on July 28, 2024

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

from apprtcdemo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.