updating to check for both mediastream and webudio support