{"action":"created","issue":{"url":"https://api.github.com/repos/sarxos/webcam-capture/issues/436","repository_url":"https://api.github.com/repos/sarxos/webcam-capture","labels_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/436/comments","events_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/436/events","html_url":"https://github.com/sarxos/webcam-capture/issues/436","id":132622045,"number":436,"title":"How to shutdown the camera?","user":{"login":"Nyutkarsh","id":7066548,"avatar_url":"https://avatars.githubusercontent.com/u/7066548?v=3","gravatar_id":"","url":"https://api.github.com/users/Nyutkarsh","html_url":"https://github.com/Nyutkarsh","followers_url":"https://api.github.com/users/Nyutkarsh/followers","following_url":"https://api.github.com/users/Nyutkarsh/following{/other_user}","gists_url":"https://api.github.com/users/Nyutkarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Nyutkarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nyutkarsh/subscriptions","organizations_url":"https://api.github.com/users/Nyutkarsh/orgs","repos_url":"https://api.github.com/users/Nyutkarsh/repos","events_url":"https://api.github.com/users/Nyutkarsh/events{/privacy}","received_events_url":"https://api.github.com/users/Nyutkarsh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-10T06:48:20Z","updated_at":"2016-02-10T08:35:54Z","closed_at":"2016-02-10T08:35:54Z","body":"hi, \r\n\r\nI have tried all the method for closing or shutting down the camera but nothing works. Will you please tell me how can close or shut down the camera which is being used.\r\n\r\nI want to close it when I click the \"X\" button on JFrame.\r\nAnd Same at the time of session time out and Logout."},"comment":{"url":"https://api.github.com/repos/sarxos/webcam-capture/issues/comments/182252521","html_url":"https://github.com/sarxos/webcam-capture/issues/436#issuecomment-182252521","issue_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/436","id":182252521,"user":{"login":"sarxos","id":472658,"avatar_url":"https://avatars.githubusercontent.com/u/472658?v=3","gravatar_id":"","url":"https://api.github.com/users/sarxos","html_url":"https://github.com/sarxos","followers_url":"https://api.github.com/users/sarxos/followers","following_url":"https://api.github.com/users/sarxos/following{/other_user}","gists_url":"https://api.github.com/users/sarxos/gists{/gist_id}","starred_url":"https://api.github.com/users/sarxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarxos/subscriptions","organizations_url":"https://api.github.com/users/sarxos/orgs","repos_url":"https://api.github.com/users/sarxos/repos","events_url":"https://api.github.com/users/sarxos/events{/privacy}","received_events_url":"https://api.github.com/users/sarxos/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T08:35:54Z","updated_at":"2016-02-10T08:35:54Z","body":"@Nyutkarsh, simply do ```webcam.close()``` in your ```windowClosed(WindowEvent e)``` method that comes from ```WindowListener``` interface.\r\n\r\nhttps://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html"}}