2016-01-22 93 views
0

我在centos和Node.js上安裝了Kurento服務器。我現在面臨的一些問題與Chrome瀏覽器的流,控制檯報告以下錯誤:Kurento webRTC流媒體服務器 - Chrome問題

NavigatorUserMediaError constraintName: "" message: "Only secure origins are allowed (see: https://goo.gl/Y0ZkNV)." name: "PermissionDeniedError"

捕獲錯誤時的int值方法:

function log(console, level) { 
  var items = this 

  var item = document.createElement('li'); 

  var argv = [].slice.call(arguments, 2) 

  // initialise the item 
  item.innerHTML = argv.map(renderData).join(' '); 

  // add the class 
  item.classList.add(level); 

  // add to the list 
  items.appendChild(item); 

  setTimeout(function() { 
    items.parentNode.scrollTop = items.offsetHeight; 
  }, 100); 

  // pass the call through to the original window console 
  console[level].apply(console, argv); 
}; 

有人可以幫我解決?

回答

1

根據錯誤信息,好像你Kurento服務器沒有配置對HTTPS工作:

Starting with Chrome 47, WebRTC is only allowed from SECURE ORIGINS (HTTPS or localhost).

按照他們的guide做出的HTTPS協議Kurento工作。