{"action":"created","issue":{"url":"https://api.github.com/repos/sarxos/webcam-capture/issues/388","repository_url":"https://api.github.com/repos/sarxos/webcam-capture","labels_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/388/comments","events_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/388/events","html_url":"https://github.com/sarxos/webcam-capture/issues/388","id":104652064,"number":388,"title":"example is not working","user":{"login":"mcheung63","id":1779905,"avatar_url":"https://avatars.githubusercontent.com/u/1779905?v=3","gravatar_id":"","url":"https://api.github.com/users/mcheung63","html_url":"https://github.com/mcheung63","followers_url":"https://api.github.com/users/mcheung63/followers","following_url":"https://api.github.com/users/mcheung63/following{/other_user}","gists_url":"https://api.github.com/users/mcheung63/gists{/gist_id}","starred_url":"https://api.github.com/users/mcheung63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcheung63/subscriptions","organizations_url":"https://api.github.com/users/mcheung63/orgs","repos_url":"https://api.github.com/users/mcheung63/repos","events_url":"https://api.github.com/users/mcheung63/events{/privacy}","received_events_url":"https://api.github.com/users/mcheung63/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sarxos/webcam-capture/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-03T09:08:07Z","updated_at":"2016-02-16T09:47:10Z","closed_at":"2015-09-12T10:07:40Z","body":"```java\r\nJFrame frame = new JFrame(\"JMF Webcam Capture Driver Demo\");\r\nframe.add(new WebcamPanel(Webcam.getDefault()));\r\nframe.pack();\r\nframe.setVisible(true);\r\nframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n```\r\n\r\n```plain\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\r\njava.lang.IllegalArgumentException: Webcam argument in WebcamPanel constructor cannot be null!\r\n\tat com.github.sarxos.webcam.WebcamPanel.<init>(WebcamPanel.java:720)\r\n\tat com.github.sarxos.webcam.WebcamPanel.<init>(WebcamPanel.java:703)\r\n\tat com.github.sarxos.webcam.WebcamPanel.<init>(WebcamPanel.java:693)\r\n\tat com.peter.SequenceEncoderDemo.main(SequenceEncoderDemo.java:20)\r\n```"},"comment":{"url":"https://api.github.com/repos/sarxos/webcam-capture/issues/comments/184600221","html_url":"https://github.com/sarxos/webcam-capture/issues/388#issuecomment-184600221","issue_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/388","id":184600221,"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-16T09:47:10Z","updated_at":"2016-02-16T09:47:10Z","body":"There are different drivers for different capturing frameworks. Some frameworks has to be installed first (like JMF, GStreamer, OpenCV) but some does not have to (e.g. OpenIMAJ, V4L4J). Decision of which framework you would like to use is up to you. By default, if no other driver is selected by the user, Webcam Capture API will use refined OpenIMAJ, however in Mac OS, if you are in Java, only thread with ID = 0 (main) can open/close webcam hardware and therefore people have to make sure to open/close webcam in main - this is known limitation of OpenIMAJ driver.\r\n\r\nIn regards to JMF - there is no way to bundle it with application without violating their license."}}