Added error parameter in KwsMedia

Change-Id: I6e1993f65d4dfce65afa9fd80d41abf622d56d1d