Hello,
my LED driver broke today and the manufacturer is not selling replacement (ofc). I would have to buy whole new light fixture which I hate from both environmental and financial reasons, so I decided I will reverse-engineer the driver, try to build my own and learn about this type of drivers.
It seems to be based on S6613 IC and the schematic looks like this (coil polarity is probably wrong, as thats something I cannot reverse engineer

):

The box of the LED driver have this specification:
INPUT: AC85-265V 50/60Hz
OUTPUT: DC24-44V 280mA +-5%
I was able to find that the IC is for "isolated flyback LED driver operating in discontinuous conduction mode (DCM)", but I actually never made something similar to this. I am well aware its dealing with mains voltage and I understand safety conserns, plus basics about SMPS.
Seems like the driver is driving the LED strip (few dozens of LEDs in series) inside the light fixture with constant current, so would it make sense to find some equivalent schematic with more broadly available LED driver IC, set it to 280mA and use that, instead of trying to replicate/fix this one?