Irvin and I find the bug code, now it is working on MacOS
Merge branch 'MacOSNoVideo' of https://github.com/jinxiaosa/CiscreaRegulation into MacOSNoVideo