mediaplay: use enums instead of constants

Jira-issue: API-33
mediaplay: use type domerror instead of string for errors

Jira-issue: API-33