iambrandonn/WebcamSwiper
소개
An experiment to control a photo carousel using getUserMedia to watch for swipes left and right with a hand.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWebcamSwiper
An experiment/hack using getUserMedia to watch for swipes left and right with a hand. This could be applied to many different uses. Flipping through pictures in an image carousel, moving to the next item in a list, flipping pages of a book or magazine, etc.
Usage
Two custom events are added to the body tag by the library. You need to bind callbacks to these events and initialize the library. If desired you can stop the library with the destroy method as well.
Include the webcam-swiper-0.1.js with a script tag or the loader of your choice.
Bind the swipe events however you choose. Example with jQuery:
$("body").bind("webcamSwipeLeft", yourLeftEventHandler); $("body").bind("webcamSwipeRight", yourRightEventHandler);
- Start the webcam access with a call to the global initializeWebcamSwiper function like this:
window.initializeWebcamSwiper();
- Now it is running! If you choose to stop it call
window.destroyWebcamSwiper();
관련 프로젝트 살펴보기
불러오는 중…