{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/10515","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/10515/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/10515/comments","events_url":"https://api.github.com/repos/electron/electron/issues/10515/events","html_url":"https://github.com/electron/electron/issues/10515","id":257640067,"number":10515,"title":"Desktop audio capture does not work on Mac and Linux","user":{"login":"mhashmi","id":1129805,"avatar_url":"https://avatars3.githubusercontent.com/u/1129805?v=4","gravatar_id":"","url":"https://api.github.com/users/mhashmi","html_url":"https://github.com/mhashmi","followers_url":"https://api.github.com/users/mhashmi/followers","following_url":"https://api.github.com/users/mhashmi/following{/other_user}","gists_url":"https://api.github.com/users/mhashmi/gists{/gist_id}","starred_url":"https://api.github.com/users/mhashmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhashmi/subscriptions","organizations_url":"https://api.github.com/users/mhashmi/orgs","repos_url":"https://api.github.com/users/mhashmi/repos","events_url":"https://api.github.com/users/mhashmi/events{/privacy}","received_events_url":"https://api.github.com/users/mhashmi/received_events","type":"User","site_admin":false},"labels":[{"id":97403642,"url":"https://api.github.com/repos/electron/electron/labels/platform/linux","name":"platform/linux","color":"c7def8","default":false},{"id":97403606,"url":"https://api.github.com/repos/electron/electron/labels/platform/macOS","name":"platform/macOS","color":"c7def8","default":false},{"id":520323169,"url":"https://api.github.com/repos/electron/electron/labels/triage/bug","name":"triage/bug","color":"fef2c0","default":false},{"id":538711379,"url":"https://api.github.com/repos/electron/electron/labels/version/1.6.x","name":"version/1.6.x","color":"bfdadc","default":false},{"id":612349168,"url":"https://api.github.com/repos/electron/electron/labels/version/1.7.x","name":"version/1.7.x","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-14T08:43:17Z","updated_at":"2017-11-08T23:58:22Z","closed_at":null,"author_association":"NONE","body":"* Electron version: 1.6.2, 1.6.5, 1.7.6\r\n* Operating system: Mac OS X Sierra, Linux (Debian Jessie)\r\n\r\n### Expected behavior\r\n\r\nGiven the defined [DesktopCapture API](https://github.com/electron/electron/blob/master/docs/api/desktop-capturer.md) for capturing both audio and video for the entire desktop, we should get a working audio stream on Windows, Linux and Mac.\r\n\r\n### Actual behaviour\r\n\r\nElectron Version 1.7.6: On Mac and Linux, the error callback triggers given the below constraints, with the error: \r\n\r\n```\r\nNavigatorUserMediaError\r\n    constraintName: \"\"\r\n    message: \"\"\r\n    name: \"TrackStartError\"\r\n```\r\n\r\nElectron Version 1.6.2 and 1.6.5: On Mac and Linux, the video stream is received successfully, albeit, with no audio.\r\n\r\nBelow are the constraints defined as per the DesktopCapture API: \r\n\r\n```\r\nconst constraints = {\r\n  audio: {\r\n    mandatory: {\r\n      chromeMediaSource: 'desktop'\r\n    }\r\n  },\r\n  video: {\r\n    mandatory: {\r\n      chromeMediaSource: 'desktop'\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nPlease note: on Windows, the audio capture works correctly. \r\n\r\n### How to reproduce\r\n\r\n```\r\ngit clone https://github.com/mhashmi/electron-desktop-capture\r\ncd electron-desktop-capture\r\nnpm install\r\nnpm start\r\n```"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/343002083","html_url":"https://github.com/electron/electron/issues/10515#issuecomment-343002083","issue_url":"https://api.github.com/repos/electron/electron/issues/10515","id":343002083,"user":{"login":"jasonrudolph","id":2988,"avatar_url":"https://avatars3.githubusercontent.com/u/2988?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonrudolph","html_url":"https://github.com/jasonrudolph","followers_url":"https://api.github.com/users/jasonrudolph/followers","following_url":"https://api.github.com/users/jasonrudolph/following{/other_user}","gists_url":"https://api.github.com/users/jasonrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonrudolph/subscriptions","organizations_url":"https://api.github.com/users/jasonrudolph/orgs","repos_url":"https://api.github.com/users/jasonrudolph/repos","events_url":"https://api.github.com/users/jasonrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/jasonrudolph/received_events","type":"User","site_admin":true},"created_at":"2017-11-08T23:58:22Z","updated_at":"2017-11-08T23:58:22Z","author_association":"NONE","body":"> @jasonrudolph Please use GH reactions instead of adding a \"+1\" comment.\r\n\r\n@MarshallOfSound: As someone that got a notification from you for a thread I'm not even participating in, is it helpful for me to say, \"Please make sure you're @mentioning the right person.\"??? 😜 \r\n"}}
{"actor":{"display_login":"jasonrudolph"}}