Move duration to media variables location