def get_player():
"""
:returns a radio instance
"""
radio = None
try:
radio = player.VlcPlayer()
except Exception as e:
logging.warn('Failed to load first player option, trying another, %s' % str(e))
radio = player.MpPlayer()
finally:
return radio
评论列表
文章目录