You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
one2many tutorial not working with Firefox 42.0 when requesting video only #16
The traffic is H.264. I.e. We disabled vp8 on KMS forcing h.264. vp8 traffic doesn't appear to have this issue
The browser is Firefox version 42.0. We verified the older Firefox versions like 41 and 39 didn't have this issue.
The 'Viewer' user requests video but no audio by setting mediaConstraints.audio to false.
Note that if the user sets both audio and video constraints to true, the issue won't happen.
Again, setting both audio and video to true doesn't reproduce this issue.
Once you create the Presenter and have one Viewer, notice that the Viewer won't see anything.
However, if you run network activity monitor on your browser box, you'll see it reporting
that network traffic is actually coming in. But it's just for some reason no video is displayed
on the Firefox browser.
The kurento version is 6.1.1.
If you still can't reproduce the issue, let me know. it could be possible the issue happens
if you disconnect all viewers from the presenter. I can later explain that if necessary.
If you can't reproduce the issue, try to add buttons that can allow you to disconnect the Viewer from the feed and then reconnect it. The reconnect should fail to show video.
You can copy my hack of the one2many tutorial to add the disconnect/reconnect button:
I have checked with your modifications but I'm still not able to reproduce your error, everything work fine. My test has been done using KMS and client in the same network and I have tested with Firefox in Ubuntu and Mac. Is your configuration similar to this?. Moreover, I'm using the latest versions of development, right now:
Version: 6.2.12.g3db6e35
Found modules:
Module: 'core' version '6.2.17.g7f703be'
Module: 'elements' version '6.2.111.gfd9e266'
Module: 'filters' version '6.2.11.gda6c417'
Could you update your KMS to the development versions? If you are still facing this problem, please share your KMS logs.
Ok, I was using 6.1.2 Kurento. Seems like 6.2.1 was just released. I can probably get to testing this issue on 6.2.1 tommorow or early next week and let you know.
Ok, I just did the test with 6.2.1, but issue appears to remain. So, basically, this time, when I hit "Viewer" I get the no video to show just the spinning wheel. However, I did notice that if I subsequently click my customized "Disconnect" and then "Reconnect" button it will work sometimes.
The client I was testing on was a Mac OS one with Firefox 42.0. I was running the node js one2many tutorial on my ubuntu notebook with the Kurento 6.2.1 running on a cloud server.
DId you verify you getting H.264 traffic? That is one requirement, I don't know if that is the difference maker.
Also, my binares are such:
ii dkms 2.2.0.3-1.1ubuntu5.14.04.2 all Dynamic Kernel Module Support Framework
ii kms-chroma-6.0 6.1.220151021135317.1.g605ed15.trusty amd64 Kurento Chroma Filter
ii kms-cmake-utils 1.2.220150714125501.1.g3acfd2b.trusty all Kurento cmake utils
ii kms-core-6.0 6.2.120151203161743.7.g7f703be.trusty amd64 Kurento core module
ii kms-core-6.0-dev 6.2.120151203161743.7.g7f703be.trusty amd64 Kurento core module
ii kms-crowddetector-6.0 6.1.220151021135222.1.g73446b2.trusty amd64 Kurento Crowd Detector Filter
ii kms-elements-6.0 6.2.120151204134651.13.gdd611c0.trusty amd64 Kurento elements module
ii kms-elements-6.0-dev 6.2.120151204134651.13.gdd611c0.trusty amd64 Kurento elements module
ii kms-filters-6.0 6.2.120151204135141.1.gda6c417.trusty amd64 Kurento filters module
ii kms-filters-6.0-dev 6.2.120151204135141.1.gda6c417.trusty amd64 Kurento filters module
ii kms-jsonrpc-1.0 1.0.120150714130721.1.g78881e4.trusty amd64 Kurento jsonrpc library
ii kms-jsonrpc-1.0-dev 1.0.120150714130721.1.g78881e4.trusty amd64 Kurento jsonrpc library
ii kms-platedetector-6.0 6.1.220151021135459.1.g01478b3.trusty amd64 Kurento Plate Detector Filter
ii kms-pointerdetector-6.0 6.1.220151021135254.1.g856edf1.trusty amd64 Kurento Pointer Detector Filter
ii kmsjsoncpp 1.6.320150901123209.38.g263929e.trusty amd64 Kurento jsoncpp library
ii kmsjsoncpp-dev 1.6.320150901123209.38.g263929e.trusty amd64 Kurento jsonrpc library
dpkg --list | grep kurento
ii kurento-media-server-6.0 6.2.120151204135638.2.g3db6e35.trusty amd64 Kurento Media Server
ii kurento-module-creator-4.0 4.0.220150714163902.1.g8547a95.trusty all Kurento module creator
tsonghong@joe:/LaughingOcto/ss/client/components/jumbo$
I'm sure that i'm using H264. I can't see any error in your log.
For your log, I have seen that your KMS is behind a NAT and you are using a STUN. For your comments, I understand that there is not problems in the ice negotiation because, this negotiation is only performs in the endpoint creation, and if your demo works when you disconnect/connect your endpoint, it seems that the negotiation works. Could you check this, please. You can take a look at about:webrtc to check the ice state.
Please, could you attach a log with level 2? You should edit the file /etc/default/kurento-media-server-6.0 and replace the line export GST_DEBUG=1,Kurento*:5 by export GST_DEBUG=2,Kurento*:5.And, please, remove your logs before restart the KMS, and send a log with only one execution, if you add/remove/connect/disconnect many elements the log is too big to be analyzed.
Also, it will be helpful a pipeline graph when your demo fails. You can take this graph calling to getGstreamerDot() from pipeline. When you connect a non working viewer, please get the dot wit the following code:
pipeline.getGstreamerDot(function(error, dot) {
});
Sorry for the troubles, but you are the only way to the bug because I'm not able to reproduce it.
Note that I did notice a few times, where it would work on startup or take super long (more than minute) to show video. The above examle was when it was well more than 5 minutes and I gave up.l
I have checked all your information and I haven't seen anything strange.
All the elements are linked, the ice negotiation is succeed and there is nothing weird in the KMS log. I'm still triying to reproduce your error. It seems to be a problem between Firefox and KMS, but I don't have any clue.
Meanwhile, could you explain your network configuration?
In terms of application setup, it's basically one2many tutorial hacked to have the audio disabled. I.e. In the peer connection media constraints, we did : {'offerToReceiveAudio': false, 'offerToReceiveVideo': true}; Because if we set offerToReceiveAudio to 'true', we dont' get this issue. So, im the customized one2many tutorial, I disabled audio to reproduce the issue. And in the kms log, I noticed it did have some audio related error messages. I'm not sure if this is a hint.
For the network configuration, we have our clients behind a NAT and then the kurento media server running on AWS.
Again, I noticed that after I upgraded to 6.2.1, I do see it sometimes work (maybe 50% of the time), but then other times like the time above, where no video shows up and I gave up after 5 minutes. But runnign network traffic, we do see bytes going to the browser, just the video doesn't show up.
I'm still getting weird behavior even with newer versions:
Firefox: 43.0.4
Kurento: 6.3
ii kurento-media-server-6.0 6.3.220160121145716.1.gd26593a.trusty amd64 Kurento Media Serve
dpkg --list | grep kms | grep 6.3
ii kms-core-6.0 6.3.120160121141900.1.g4955342.trusty amd64 Kurento core module
ii kms-core-6.0-dev 6.3.120160121141900.1.g4955342.trusty amd64 Kurento core module
ii kms-elements-6.0 6.3.120160121142738.2.g5c08de8.trusty amd64 Kurento elements module
ii kms-elements-6.0-dev 6.3.120160121142738.2.g5c08de8.trusty amd64 Kurento elements module
ii kms-filters-6.0 6.3.120160121143823.1.gb3f6a20.trusty amd64 Kurento filters module
ii kms-filters-6.0-dev 6.3.120160121143823.1.gb3f6a20.trusty amd64 Kurento filters module
ii kmsjsoncpp 1.6.320150901123209.38.g263929e.trusty amd64 Kurento jsoncpp library
ii kmsjsoncpp-dev 1.6.3~20150901123209.38.g263929e.trusty amd64 Kurento jsonrpc library
So, what happens now when I test my clients - both on Mac OS X and Ubuntu is that 90% of the time, once I press the "Viewer" button after page reload, I just get a spinning wheel and I gave up waiting after at least a minute. Then, if I hit the "Disconnect" button followed by the "Reconnect" button, then most of the time I get the video displayed when using my tweaked sample of one2many.
Also, I noticed that a lot of times, if I get the spinning wheel on the first test client, and then attempt to the run the 2nd test client (by pressing "Viewer"), then it will work for both and I didn't have to press the customized "Disconnect" or "Reconnect" button.
I did a quick test with the KMS 6.4.0 with Firefox v 45 using the above test and it seems to work most of the time now though the video does often take quite a bit to show up (10 seconds+) and i noticed a few times where the video would just freeze and no errors in the kurento logs. But for now, I'm okay if you close this ticket. If I find other issues, I'll open new cases. Thx!
Activity
dfernandezlop commentedon Dec 3, 2015
Hi,
I can't reproduce the problem in Kubuntu. What operating system are you using for your clients?
Thanks.
David.
tsonghong commentedon Dec 3, 2015
We're using Ubuntu and Mac mainly.
If you can't reproduce the issue, try to add buttons that can allow you to disconnect the Viewer from the feed and then reconnect it. The reconnect should fail to show video.
You can copy my hack of the one2many tutorial to add the disconnect/reconnect button:
dfernandezlop commentedon Dec 4, 2015
Hi,
I have checked with your modifications but I'm still not able to reproduce your error, everything work fine. My test has been done using KMS and client in the same network and I have tested with Firefox in Ubuntu and Mac. Is your configuration similar to this?. Moreover, I'm using the latest versions of development, right now:
Version: 6.2.1
2.g3db6e357.g7f703be'Found modules:
Module: 'core' version '6.2.1
Module: 'elements' version '6.2.1
11.gfd9e266'1.gda6c417'Module: 'filters' version '6.2.1
Could you update your KMS to the development versions? If you are still facing this problem, please share your KMS logs.
David.
tsonghong commentedon Dec 4, 2015
Ok, I was using 6.1.2 Kurento. Seems like 6.2.1 was just released. I can probably get to testing this issue on 6.2.1 tommorow or early next week and let you know.
tsonghong commentedon Dec 7, 2015
Ok, I just did the test with 6.2.1, but issue appears to remain. So, basically, this time, when I hit "Viewer" I get the no video to show just the spinning wheel. However, I did notice that if I subsequently click my customized "Disconnect" and then "Reconnect" button it will work sometimes.
The client I was testing on was a Mac OS one with Firefox 42.0. I was running the node js one2many tutorial on my ubuntu notebook with the Kurento 6.2.1 running on a cloud server.
DId you verify you getting H.264 traffic? That is one requirement, I don't know if that is the difference maker.
Also, my binares are such:
ii dkms 2.2.0.3-1.1ubuntu5.14.04.2 all Dynamic Kernel Module Support Framework
ii kms-chroma-6.0 6.1.2
20151021135317.1.g605ed15.trusty amd64 Kurento Chroma Filter20150714125501.1.g3acfd2b.trusty all Kurento cmake utilsii kms-cmake-utils 1.2.2
ii kms-core-6.0 6.2.1
20151203161743.7.g7f703be.trusty amd64 Kurento core module20151203161743.7.g7f703be.trusty amd64 Kurento core moduleii kms-core-6.0-dev 6.2.1
ii kms-crowddetector-6.0 6.1.2
20151021135222.1.g73446b2.trusty amd64 Kurento Crowd Detector Filter20151204134651.13.gdd611c0.trusty amd64 Kurento elements moduleii kms-elements-6.0 6.2.1
ii kms-elements-6.0-dev 6.2.1
20151204134651.13.gdd611c0.trusty amd64 Kurento elements module20151204135141.1.gda6c417.trusty amd64 Kurento filters moduleii kms-filters-6.0 6.2.1
ii kms-filters-6.0-dev 6.2.1
20151204135141.1.gda6c417.trusty amd64 Kurento filters module20150714130721.1.g78881e4.trusty amd64 Kurento jsonrpc libraryii kms-jsonrpc-1.0 1.0.1
ii kms-jsonrpc-1.0-dev 1.0.1
20150714130721.1.g78881e4.trusty amd64 Kurento jsonrpc library20151021135459.1.g01478b3.trusty amd64 Kurento Plate Detector Filterii kms-platedetector-6.0 6.1.2
ii kms-pointerdetector-6.0 6.1.2
20151021135254.1.g856edf1.trusty amd64 Kurento Pointer Detector Filter20150901123209.38.g263929e.trusty amd64 Kurento jsoncpp libraryii kmsjsoncpp 1.6.3
ii kmsjsoncpp-dev 1.6.3
20150901123209.38.g263929e.trusty amd64 Kurento jsonrpc library20151204135638.2.g3db6e35.trusty amd64 Kurento Media Serverdpkg --list | grep kurento
ii kurento-media-server-6.0 6.2.1
ii kurento-module-creator-4.0 4.0.2
20150714163902.1.g8547a95.trusty all Kurento module creator/LaughingOcto/ss/client/components/jumbo$tsonghong@joe:
tsonghong commentedon Dec 7, 2015
Attached are the error logs. Just focus on the last few pages of messa
media-server_error.log.txt
media-server_2015-12-06_21-31-44.00000.pid5741.log.txt
ges.
dfernandezlop commentedon Dec 7, 2015
Hi,
I'm sure that i'm using H264. I can't see any error in your log.
For your log, I have seen that your KMS is behind a NAT and you are using a STUN. For your comments, I understand that there is not problems in the ice negotiation because, this negotiation is only performs in the endpoint creation, and if your demo works when you disconnect/connect your endpoint, it seems that the negotiation works. Could you check this, please. You can take a look at
about:webrtcto check the ice state.Please, could you attach a log with level 2? You should edit the file /etc/default/kurento-media-server-6.0 and replace the line
export GST_DEBUG=1,Kurento*:5byexport GST_DEBUG=2,Kurento*:5.And, please, remove your logs before restart the KMS, and send a log with only one execution, if you add/remove/connect/disconnect many elements the log is too big to be analyzed.Also, it will be helpful a pipeline graph when your demo fails. You can take this graph calling to getGstreamerDot() from pipeline. When you connect a non working viewer, please get the dot wit the following code:
pipeline.getGstreamerDot(function(error, dot) {
});
Sorry for the troubles, but you are the only way to the bug because I'm not able to reproduce it.
Regards.
tsonghong commentedon Dec 7, 2015
I will try to find time this week to implement and get this info. Thank you!
Henry
tsonghong commentedon Dec 8, 2015
Hi, I did one new kurento server session that the first attempt of Viewer to had issue. Rough time line is like this:
Server and kurento started: Tue Dec 8 16:21:28 UTC 2015
Presenter started: Tue Dec 8 16:22:17 UTC 2015
Viewer started that immediatly had the issue: Tue Dec 8 16:22:49 UTC 2015
ANd below are the gdot and logs with debugs turned on.
media-server_2015-12-08_10-21-20.00000.pid25093.log.txt
media-server_error.log.txt
gdot.txt
aboutwebrtc.txt
Note that I did notice a few times, where it would work on startup or take super long (more than minute) to show video. The above examle was when it was well more than 5 minutes and I gave up.l
dfernandezlop commentedon Dec 9, 2015
Hi,
Thank you for this amount of information.
I have checked all your information and I haven't seen anything strange.
All the elements are linked, the ice negotiation is succeed and there is nothing weird in the KMS log. I'm still triying to reproduce your error. It seems to be a problem between Firefox and KMS, but I don't have any clue.
Meanwhile, could you explain your network configuration?
Regards.
tsonghong commentedon Dec 9, 2015
In terms of application setup, it's basically one2many tutorial hacked to have the audio disabled. I.e. In the peer connection media constraints, we did : {'offerToReceiveAudio': false, 'offerToReceiveVideo': true}; Because if we set offerToReceiveAudio to 'true', we dont' get this issue. So, im the customized one2many tutorial, I disabled audio to reproduce the issue. And in the kms log, I noticed it did have some audio related error messages. I'm not sure if this is a hint.
For the network configuration, we have our clients behind a NAT and then the kurento media server running on AWS.
Again, I noticed that after I upgraded to 6.2.1, I do see it sometimes work (maybe 50% of the time), but then other times like the time above, where no video shows up and I gave up after 5 minutes. But runnign network traffic, we do see bytes going to the browser, just the video doesn't show up.
Henry
dfernandezlop commentedon Dec 9, 2015
What logs about audio? I haven't seen any logs about audio in your KMS log (something normal if there is no audio).
I will try to test with your same configuration.
tsonghong commentedon Dec 9, 2015
The media-server_error.log shows messages about 'not mapped' for audio like:
Just make sure the end result of the configuration has the 'offerToReceiveAudio' set to false. Otherwise, the issue won't happen.
Henry
igracia commentedon Dec 18, 2015
Did you check with the latest version of kurento-utils? We had a couple of bugs there.
igracia commentedon Jan 15, 2016
@tsonghong Any updates? Did you try with a different version of kurento-utils?
tsonghong commentedon Jan 15, 2016
Sorry i'll try next week since out of office this week.
On Jan 15, 2016 2:56 PM, "Ivan Gracia" [email protected] wrote:
tsonghong commentedon Jan 22, 2016
I'm still getting weird behavior even with newer versions:
Firefox: 43.0.4
Kurento: 6.3
ii kurento-media-server-6.0 6.3.2
20160121145716.1.gd26593a.trusty amd64 Kurento Media Serve20160121141900.1.g4955342.trusty amd64 Kurento core moduledpkg --list | grep kms | grep 6.3
ii kms-core-6.0 6.3.1
ii kms-core-6.0-dev 6.3.1
20160121141900.1.g4955342.trusty amd64 Kurento core module20160121142738.2.g5c08de8.trusty amd64 Kurento elements moduleii kms-elements-6.0 6.3.1
ii kms-elements-6.0-dev 6.3.1
20160121142738.2.g5c08de8.trusty amd64 Kurento elements module20160121143823.1.gb3f6a20.trusty amd64 Kurento filters moduleii kms-filters-6.0 6.3.1
ii kms-filters-6.0-dev 6.3.1
20160121143823.1.gb3f6a20.trusty amd64 Kurento filters module20150901123209.38.g263929e.trusty amd64 Kurento jsoncpp libraryii kmsjsoncpp 1.6.3
ii kmsjsoncpp-dev 1.6.3~20150901123209.38.g263929e.trusty amd64 Kurento jsonrpc library
So, what happens now when I test my clients - both on Mac OS X and Ubuntu is that 90% of the time, once I press the "Viewer" button after page reload, I just get a spinning wheel and I gave up waiting after at least a minute. Then, if I hit the "Disconnect" button followed by the "Reconnect" button, then most of the time I get the video displayed when using my tweaked sample of one2many.
Also, I noticed that a lot of times, if I get the spinning wheel on the first test client, and then attempt to the run the 2nd test client (by pressing "Viewer"), then it will work for both and I didn't have to press the customized "Disconnect" or "Reconnect" button.
Henry
tsonghong commentedon Jan 22, 2016
If it helps, I can tar up my entire customized tutorial of one2many and have you download it, untar, and test. Let me know if you want that.
Henry
igracia commentedon Jan 22, 2016
Are you getting this behavior with a regular one2many tutorial, or just with the modified version?
tsonghong commentedon Jan 22, 2016
It works fine on the regular one2many tutorial because it doesn't disable audio. To reproduce the problem, the audio needs to be disabled:
igracia commentedon Jan 22, 2016
When this happens, do you see any errors in any of the logs (KMS, browser or app server)?
And also, did you check with the latest version of kurento-utils-js? We had a bug there, and we were doing some perversions with the constraints.
dfernandezlop commentedon Mar 11, 2016
No answers 2 months ago, any update or can we close the bug?
tsonghong commentedon Mar 14, 2016
Sorry for the late reply, let me test this today and get back to you this week. I see that there is a new version of kurento, let me test on that one.
tsonghong commentedon Mar 14, 2016
I did a quick test with the KMS 6.4.0 with Firefox v 45 using the above test and it seems to work most of the time now though the video does often take quite a bit to show up (10 seconds+) and i noticed a few times where the video would just freeze and no errors in the kurento logs. But for now, I'm okay if you close this ticket. If I find other issues, I'll open new cases. Thx!