change videoinput api