def playstate_str(state):
if state == const.PLAY_STATE_NO_MEDIA:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if state == const.PLAY_STATE_IDLE:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if state == const.PLAY_STATE_LOADING:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if state == const.PLAY_STATE_PAUSED:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if state == const.PLAY_STATE_PLAYING:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if state == const.PLAY_STATE_FAST_FORWARD:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if state == const.PLAY_STATE_FAST_BACKWARD:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>return '<STR_LIT>'<EOL>
Convert internal API playstate to string.