Add metadata and duration functions to player