Should be:
"{{ states('input_text.selected_mediaplayer') }}"
However you still can’t template Lovelace cards like that without using a custom template card. There are two. One uses Jinja templates (like the above) and the other uses JavaScript. The JS version has less of a performance hit on your frontend. See the links for more info.