# "Access to screen denied" error

**URL:** https://discourse.lynckia.com/t/access-to-screen-denied-error/390
**Category:** Support
**Created:** [February 8, 2017, 5:09pm UTC](https://discourse.lynckia.com/t/access-to-screen-denied-error/390 "2017-02-08T17:09:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rahulkm11](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@rahulkm11](https://discourse.lynckia.com/u/rahulkm11)
#### Post date: [February 8, 2017, 5:09pm UTC](https://discourse.lynckia.com/t/access-to-screen-denied-error/390/1 "2017-02-08T17:09:24Z")

</div>

I am seeing “Access to screen denied” in “basic\_example” application  
DEBUG: Screen access on chrome stable, looking for extension  
erizo.js:180 ERROR: Access to screen denied  
erizo.js:180 ERROR: Failed to get access to local media. Error code was Access to screen denied.  
erizo.js:180 DEBUG: Event: access-denied

I have set the “screen” property to true (And I am also using ssl/https. Have also installed chrome screen sharing plugin)  
var screen = true;

var config = {audio: true,  
video: true,  
data: true,  
screen: screen,  
videoSize: [640, 480, 640, 480],  
videoFrameRate: [10, 20]};  
// If we want screen sharing we have to put our Chrome extension id.  
// The default one only works in our Lynckia test servers.  
// If we are not using chrome, the creation of the stream will fail regardless.  
if (screen){  
config.extensionId = ‘okeephmleflklcdebijnponpabbmmgeo’;  
console.log(‘screen sharing is set to true. chrome extension id:’, config.extensionId);  
}

I also looked at demo source code, which doesn’t do anything differently than basic\_example, except it executes the screen sharing code upon hitting “share” button, but that shouldn’t matter.

Any ideas, how to resolve this ?

---

<div class="post-metadata">

### Author: ![rahulkm11](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@rahulkm11](https://discourse.lynckia.com/u/rahulkm11)
#### Post date: [February 9, 2017, 12:57am UTC](https://discourse.lynckia.com/t/access-to-screen-denied-error/390/2 "2017-02-09T00:57:02Z")

</div>

Turned out to be an issue with chrome extension.Had to modify “externally\_connectable” key of “manifest.json” file in “erizo\_controller/erizoClient/extras/chrome-extension/” folder  
Alternatively, you can modify the host file for the development purposes.

---

<div class="post-metadata">

### Author: ![dn8034](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@dn8034](https://discourse.lynckia.com/u/dn8034)
#### Post date: [July 1, 2017, 7:01pm UTC](https://discourse.lynckia.com/t/access-to-screen-denied-error/390/3 "2017-07-01T19:01:06Z")

</div>

Hi i am getting same error can you please tell me that did you built the extension for chrome after doing this? if so how? if not then what have you done?

---

<div class="post-metadata">

### Author: ![DiegoFic](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@DiegoFic](https://discourse.lynckia.com/u/DiegoFic)
#### Post date: [October 3, 2017, 4:36pm UTC](https://discourse.lynckia.com/t/access-to-screen-denied-error/390/4 "2017-10-03T16:36:37Z")

</div>

Hi, i have the same when i tried to use “basic\_example” with option screen= true.

INFO: Requested access to local media  
erizo.js:100 DEBUG: Screen access requested  
erizo.js:100 DEBUG: Screen sharing in Chrome  
erizo.js:100 DEBUG: Screen access on chrome stable, looking for extension  
erizo.js:100 ERROR: Access to screen denied  
erizo.js:100 ERROR: Failed to get access to local media. Error code was Access to screen denied.  
erizo.js:100 DEBUG: Event: access-denied

I´m runing aplication on virtual box with ubuntu 14.04 and using Chrome(Google Chrome 56.0.2924.87). I have installed chrome screen sharing plugin and using ssl ([http://lynckia.com/licode/nginx-dep.html](http://lynckia.com/licode/nginx-dep.html)).

var config = {screen: true, data: true};  
if (screen){  
config.extensionId = ‘okeephmleflklcdebijnponpabbmmgeo’;  
}

I also changed “erizo\_controller/erizoClient/extras/chrome-extension/manifest.json” but error persist.

“externally\_connectable”: {  
“matches”: [“_://_”]  
}

I dont know whats wrong i hope you can help me find a fast solution.

---

<div class="post-metadata">

### Author: ![Alvaro\_Alonso](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/alvaro_alonso/32/32_2.png) [@Alvaro\_Alonso](https://discourse.lynckia.com/u/Alvaro_Alonso)
#### Post date: [October 10, 2017, 7:29am UTC](https://discourse.lynckia.com/t/access-to-screen-denied-error/390/5 "2017-10-10T07:29:40Z")

</div>

As you can see in the code, the Screen Sharing Extension we provide in Google Store is implemented to work in our demo server. You have to configure your own extension for making it work in your server.

---

<div class="post-metadata">

### Author: ![Footniko](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/footniko/32/145_2.png) [@Footniko](https://discourse.lynckia.com/u/Footniko)
#### Post date: [October 9, 2018, 4:54pm UTC](https://discourse.lynckia.com/t/access-to-screen-denied-error/390/6 "2018-10-09T16:54:45Z")

</div>

For those who faced with the issue, please take a look at “externally\_connectable” param and its valid values: [https://developer.chrome.com/apps/manifest/externally\_connectable](https://developer.chrome.com/apps/manifest/externally_connectable)
