add beginCapture and endCapture
Merge pull request #17 from go-oleg/master

Add beginCapture and endCapture