{"id":20449819,"url":"https://github.com/devnawjesh/webcam","last_synced_at":"2026-03-19T15:54:56.484Z","repository":{"id":171297541,"uuid":"133732445","full_name":"Devnawjesh/webcam","owner":"Devnawjesh","description":"Accessing your webcam via your browser used to involve a...pardon the profanity, a plugin. That's right. In order to connect to a webcam and gain access to its video stream, you had to rely on something primarily created in Flash or Silverlight. While that approach certainly worked for browsers that supported plug-ins, it didn't help for the increasing number of browsers that aim to be plugin-free. This inability to natively access the webcam without relying on 3rd party components was certainly a gap in the HTML development story. At least, that was the case until pretty recently.","archived":false,"fork":false,"pushed_at":"2018-05-16T23:36:54.000Z","size":221,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-22T03:53:10.238Z","etag":null,"topics":["getusermedia","screen-capture","screenshot","video-streaming","web-application","webcam","webcam-capture","webcam-streaming","webcamjs"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devnawjesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-16T23:13:07.000Z","updated_at":"2022-05-09T22:30:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd03ba98-a4d7-4092-9587-7d5df2831654","html_url":"https://github.com/Devnawjesh/webcam","commit_stats":null,"previous_names":["devnawjesh/webcam"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Devnawjesh/webcam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devnawjesh%2Fwebcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devnawjesh%2Fwebcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devnawjesh%2Fwebcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devnawjesh%2Fwebcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devnawjesh","download_url":"https://codeload.github.com/Devnawjesh/webcam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devnawjesh%2Fwebcam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29115530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["getusermedia","screen-capture","screenshot","video-streaming","web-application","webcam","webcam-capture","webcam-streaming","webcamjs"],"created_at":"2024-11-15T10:45:11.678Z","updated_at":"2026-02-05T07:31:44.378Z","avatar_url":"https://github.com/Devnawjesh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# webcam\nAccessing your webcam via your browser used to involve a...pardon the profanity, a plugin. That's right. In order to connect to a webcam and gain access to its video stream, you had to rely on something primarily created in Flash or Silverlight. While that approach certainly worked for browsers that supported plug-ins, it didn't help for the increasing number of browsers that aim to be plugin-free. This inability to natively access the webcam without relying on 3rd party components was certainly a gap in the HTML development story. At least, that was the case until pretty recently.\n\nHow to Use Webcam In PHP:\nHere we will use the JPEG Camera script for the webcam functions to take the snap and save it.\nindex.php\n\u003cscript type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"jpeg_camera/jpeg_camera_with_dependencies.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\nBelow the form we will put our webcam window to show the webcam screen capture.\n     \u003cdiv class=\"col-md-6\"\u003e\n         \u003cdiv class=\"text-center\"\u003e\n     \u003cdiv id=\"camera_info\"\u003e\u003c/div\u003e\n    \u003cdiv id=\"camera\"\u003e\u003c/div\u003e\u003cbr\u003e\n    \u003cbutton id=\"take_snapshots\" class=\"btn btn-success btn-sm\"\u003eTake Snapshots\u003c/button\u003e\n    \u003c/div\u003e\n    \u003c/div\u003e\n    Now it's time to process the image snap. Add this code to index.php :\n    \n  \u003cscript\u003e\n  var options = {\n      shutter_ogg_url: \"jpeg_camera/shutter.ogg\",\n      shutter_mp3_url: \"jpeg_camera/shutter.mp3\",\n      swf_url: \"jpeg_camera/jpeg_camera.swf\",\n    };\n    var camera = new JpegCamera(\"#camera\", options);\n  \n  $('#take_snapshots').click(function(){\n    var snapshot = camera.capture();\n    snapshot.show();\n    console.log(snapshot);\n    snapshot.upload({api_url: \"action.php\"}).done(function(response) {\n$('#imagelist').prepend(\"\u003ctr\u003e\u003ctd\u003e\u003cimg src='\"+response+\"' width='100px' height='100px'\u003e\u003c/td\u003e\u003ctd\u003e\"+response+\"\u003c/td\u003e\u003c/tr\u003e\");\n}).fail(function(response) {\n  alert(\"Upload failed with status \" + response);\n});\n})\n\nfunction done(){\n    $('#snapshots').html(\"uploaded\");\n}\n\u003c/script\u003e\n\nNow when we receive the success message, we will show it in a table.\n  \u003ctable class=\"table table-bordered\"\u003e\n      \u003cthead\u003e\n          \u003ctr\u003e\n            \u003cth\u003eImage\u003c/th\u003e\u003cth\u003eImage Name\u003c/th\u003e\n          \u003c/tr\u003e\n      \u003c/thead\u003e\n      \u003ctbody id=\"imagelist\"\u003e    \n      \u003c/tbody\u003e\n   \u003c/table\u003e\n        \n You can also use getUserMedia in index2.php and index3.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnawjesh%2Fwebcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevnawjesh%2Fwebcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnawjesh%2Fwebcam/lists"}