{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenVidu/openvidu/issues/51","repository_url":"https://api.github.com/repos/OpenVidu/openvidu","labels_url":"https://api.github.com/repos/OpenVidu/openvidu/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/OpenVidu/openvidu/issues/51/comments","events_url":"https://api.github.com/repos/OpenVidu/openvidu/issues/51/events","html_url":"https://github.com/OpenVidu/openvidu/issues/51","id":323521956,"number":51,"title":"Can't record screen share in openvidu 2.0","user":{"login":"mthornhill","id":75718,"avatar_url":"https://avatars1.githubusercontent.com/u/75718?v=4","gravatar_id":"","url":"https://api.github.com/users/mthornhill","html_url":"https://github.com/mthornhill","followers_url":"https://api.github.com/users/mthornhill/followers","following_url":"https://api.github.com/users/mthornhill/following{/other_user}","gists_url":"https://api.github.com/users/mthornhill/gists{/gist_id}","starred_url":"https://api.github.com/users/mthornhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mthornhill/subscriptions","organizations_url":"https://api.github.com/users/mthornhill/orgs","repos_url":"https://api.github.com/users/mthornhill/repos","events_url":"https://api.github.com/users/mthornhill/events{/privacy}","received_events_url":"https://api.github.com/users/mthornhill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-16T08:40:28Z","updated_at":"2018-05-16T08:40:28Z","closed_at":null,"author_association":"NONE","body":"I setup openvidu following instructions here https://openvidu.io/docs/advanced-features/recording/ with this docker command\r\n```\r\ndocker run -p 4443:4443 --rm \\\r\n    -v /var/run/docker.sock:/var/run/docker.sock \\\r\n    -v /tmp/openvidu:/tmp/openvidu \\\r\n    -e openvidu.recording=true \\\r\n    -e MY_UID=$(id -u $USER) \\\r\n    -e openvidu.recording.path=/tmp/openvidu \\\r\n    -e openvidu.recording.public-access=true \\\r\nopenvidu/openvidu-server-kms:2.0.0\r\n```\r\n\r\nI then setup the openvidu-insecure-angular client following instructions here https://openvidu.io/docs/tutorials/openvidu-insecure-angular/ with these commands\r\n\r\n`git clone https://github.com/OpenVidu/openvidu-tutorials.git`\r\n\r\nI then edited app.component.ts so that the publisher properties looked like this for screen sharing:\r\n\r\n```\r\n\tlet publisher = this.OV.initPublisher(undefined, {\r\n            audioSource: false, // The source of audio. If undefined default microphone\r\n            videoSource: \"screen\", // The source of video. If undefined default webcam\r\n            publishAudio: false,     // Whether you want to start publishing with your audio unmuted or not\r\n            publishVideo: true,     // Whether you want to start publishing with your video enabled or not\r\n            resolution: '640x480',  // The resolution of your video\r\n            frameRate: 30,          // The frame rate of your video\r\n            insertMode: 'APPEND',   // How the video is inserted in the target element 'video-container'\r\n            mirror: false           // Whether to mirror your local video or not\r\n          });\r\n\r\n```\r\n\r\n```\r\ncd openvidu-tutorials/openvidu-insecure-angular\r\nnpm install\r\nng serve\r\n```\r\n\r\n\r\nI opened a chrome browser at https://localhost:4200 and joined a session where the screen sharing worked correctly and appeared in the correct HTML element however the openvidu/openvidu-recording docker container didn't get kicked off (as it did with openvidu 1.9)\r\nI also edited line 85 of app.component.ts to the code below and tried the following for connecting to a session:\r\n\r\n`\tthis.session.connect(token + '&recorder=true&secret=MY_SECRET', { clientData: this.myUserName })`\r\n\r\nThis also didn't start the openvidu/openvidu-recording container.\r\nHave I made a mistake in my configuration above or is this a bug in recording?\r\nThanks\r\nMichael\r\n"}}
{"actor":{"display_login":"mthornhill"}}