The state's lottery director told lawmakers that online gambling could provide a partial solution for the growing shortfall in Maryland revenue.