// Stops the acquisition of the video stream. func (camera *VideoCamera) Stop() int { if camera.on == false { return 1 } C.freenect_stop_video(camera.device.dev) fmt.Printf("Video stream stopped\n") return 0 }
// StopVideoStream stops the retrieval of video information from the device. func (device *Device) StopVideoStream() error { errCode := C.freenect_stop_video(device.device) if errCode != 0 { return errors.New("could not stop video stream") } return nil }
//FREENECTAPI int freenect_stop_video(freenect_device *dev); func (dev *Device) StopVideo() int { return int(C.freenect_stop_video(dev.ptr())) }