media renderer call moved into correct place