I know this topic has an accepted answer, but the answer redirects towards the use of Tkinter.
For anyone looking for a Dearpygui specific solution, I gave an answer here : https://stackoverflow.com/questions/79189436/how-to-display-a-gif-in-dearpygui/79189437#79189437 on how to animate gif and videos in dpg.
NB: Sound is however not supported by my solution.