support windows mode capture too on linux platform, but now it use sample mode