Added error parameter in KwsMedia

Change-Id: I93b9e4ac0ec90777a32eac2b6009d00715c6272c