Add new initialization method to pass total duration recording