Fixed camera index detection and made video server send non-blocking.