In his video [Afroman] describes how the LM317 can be used to regulate current rather than voltage to provide a constant current ... While this circuit may not be as efficient as an LED driver ...