EHTISHAM Posted May 11, 2015 Share Posted May 11, 2015 How to run run an executable file like Webcam and also croping of captured image on the click event of button on a php page? Quote Link to comment https://forums.phpfreaks.com/topic/296199-run-webcam-on-button-click/ Share on other sites More sharing options...
Muddy_Funster Posted May 11, 2015 Share Posted May 11, 2015 php runs on the server, so can't interact with client systems directly. You would need some client side code to work that for you. Quote Link to comment https://forums.phpfreaks.com/topic/296199-run-webcam-on-button-click/#findComment-1511435 Share on other sites More sharing options...
Psycho Posted May 11, 2015 Share Posted May 11, 2015 All web application that I have used which interact with a web camera (virtual meeting applications) all use plug-ins. Most of the ones have required a separate install, but one of the current ones we use appears to use Flash. You would either need to build your own plug-in or find a way to integrate with flash (I have no experience with this). So, not only can you not do this with PHP, you need something more than just HTML/JavaScript (probably). There could be something built into HTML5 to assist with this, but I doubt it. Seeing as it would interact with something on the user's PC it would definitely require user interaction to enable it. Could you imagine if some random web page was able to start your webcam and take pictures without your consent? Quote Link to comment https://forums.phpfreaks.com/topic/296199-run-webcam-on-button-click/#findComment-1511444 Share on other sites More sharing options...
CroNiX Posted May 11, 2015 Share Posted May 11, 2015 This may be useful to you: http://davidwalsh.name/browser-camera I believe it's similar to what google hangouts uses to access the camera with HTML5, canvas and javascript. Quote Link to comment https://forums.phpfreaks.com/topic/296199-run-webcam-on-button-click/#findComment-1511461 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.