Consolidate Video & Audio duration to one function