edited check for getusermedia so if not available, will use play mode only